NOTE: Examples of bad option names
cURL is hobbled by not only a bad name, but bad UI design. In particular,
some of the options have particularly bad names. For example
--includeto output full headers.--requestto change the request method (GET, DELETE, etc.).
FAQ: How to suppress output?
That is, how to activate cURL's "quiet" or "silent" mode.
Use -s the or --silent option.
HOWTO: Issue DELETE or PUT requests.
Use the --request or -X option:
$ curl --request DELETE http://example.com/user/clem
HOWTO: POST JSON
$ echo '{"message":"Hello, World!"}' | curl --include -X POST -d @- http://localhost/foo.php
TIP: Some example requests
curl -s -v -i -H 'If-Modified-Since: eyJzaW5jZV9pZCI6IjcyODI5OTM5NTgifQ==' -X GET http://beebo.local:8080/twitter/mjs@beebo.org