Transfers data from or to a server. Supports most protocols, including HTTP, FTP, and POP3. More information: https://curl.se/docs/manpage.html.
curl http://example.com --output path/to/file
curl --remote-name http://example.com/filename
curl --fail --remote-name --location --continue-at - http://example.com/filename
application/x-www-form-urlencoded
). Use --data @file_name
or --data @'-'
to read from STDIN:curl --data 'name=bob' http://example.com/form
curl --header 'X-My-Header: 123' --request PUT http://example.com
curl --data '{"name":"bob"}' --header 'Content-Type: application/json' http://example.com/users/1234
curl --user username http://example.com
curl --cert client.pem --key key.pem --insecure https://example.com