Skip to content

Instantly share code, notes, and snippets.

@aromig
Created September 22, 2015 14:20
Show Gist options
  • Save aromig/4c3f18cc5b6d98a9efa5 to your computer and use it in GitHub Desktop.
Save aromig/4c3f18cc5b6d98a9efa5 to your computer and use it in GitHub Desktop.
cURL syntax for REST requests
# GET request
curl http://<url>
# View Header Information Only
curl http://<url> -I
# Include Header Information with request
curl http://<url> -i
# POST request w/ body in a file
curl http://<url> -X POST -d @filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment