Created
September 22, 2015 14:20
-
-
Save aromig/4c3f18cc5b6d98a9efa5 to your computer and use it in GitHub Desktop.
cURL syntax for REST requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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