Skip to content

Instantly share code, notes, and snippets.



Created Sep 22, 2015
What would you like to do?
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