Skip to content


force GET request and get headers

If you just want the headers and use -I, curl will do a HEAD request, so you can force to do a GET request:

curl -X GET -I


run requests after another with a single curl command:

curl --next -X POST --data "abc=xyz" --next

blog post about this, source

uploading files

form upload

form upload will include things like a filename and the content-type.

curl -F 'file=@screenshot.png'

just upload the file

just the body of the file will be uploaded here.

curl -X PUT -H "content-type: video/mp4" --data-binary '@a54dfef2-3006-4702-8eaa-3f28bee43e1a.mp4'