curl
curl is a tool for interacting with URLs on the command line, e.g.
curl https://curl.haxx.se/
returns the content of the curl website home page.
Options
Preceded by a hyphen, can be specified all together, e.g.
curl -vdX POST https://curl.haxx.se/
v– verboseX <method>– specify that request method<method>is to be usedGETis the default method.curl -vX GETwill tell you thatX GETis unnecessary!d– send aContent-Length: 0headerBy default this doesn't happen, so
curl -X POSTwill return an HTTP 411 if the service doesn't support POST requests with an empty message body