Official man page
Official FAQ
Jump to: GET | POST | PUT | DELETE | PATCH | Verbose Output | Basic Auth | Ignore Insecure SSL Connections | Headers | Output to File
Example: curl http://www.example.com/resource/123
-X POST -d "bodyContents"
-X POST -d @fileWithBodyContents
Example: curl -X POST -d "my contents to post" http://www.example.com/doit
-X PUT -d "bodyContents"
-X PUT -d @fileWithBodyContents
Example: curl -X PUT -d "my contents to put" http://www.example.com/doit
-X DELETE
Example: curl -X DELETE http://www.example.com/resource/123
--request PATCH -d "patchContents"
--request PATCH -d @fileWithPatchContents
Example: curl --request PATCH -d "foo=bar" http://www.example.com/resource/123
-v, --verbose
Example: curl -v https://www.google.com
-u username:password
Example: curl -u claptrap:Password1 http://www.example.com
-k, --insecure
Example: curl -k https://www.badcert.com
-H "headerName: headerValue"
Example: curl -H "Content-Type: application/json" http://www.example.com
-o, --output <filename>
Example: curl -o capture.txt http://www.example.com