Skip to content

Instantly share code, notes, and snippets.

@cristiandouce
Forked from betzerra/gist:4236646
Created December 8, 2012 00:35
Show Gist options
  • Save cristiandouce/4237824 to your computer and use it in GitHub Desktop.
Save cristiandouce/4237824 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