Skip to content

Instantly share code, notes, and snippets.

@betzerra
Created December 7, 2012 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save betzerra/4236646 to your computer and use it in GitHub Desktop.
Save betzerra/4236646 to your computer and use it in GitHub Desktop.
Curl commands
#GET
curl -HAccept:text/plain http://example.com/base
#PUT
curl -XPUT -HContent-type:text/plain --data "stuff:morestuff" http://example.com/base?param=val
#DELETE
curl -XDELETE http://example.com/base/user/123
#POST
curl -d "param1=value1&param2=value2" http://example.com/base/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment