cURL, which stands for client URL, is a command line tool that developers
use to transfer data to and from a server. At the most fundamental,
cURL lets you talk to a server by specifying the location (in the form of a URL)
and the data you want to send. cURL supports several different protocols,
including HTTP and HTTPS, and runs on almost every platform. This makes cURL
ideal for testing communication from almost any device (as long as it has a
command line and network connectivity) from a local server to most edge devices.
The most basic command in curl is curl http://example.com. The curl command is
followed by the URL, from which we would like to retrieve some kind of data.
In this case, it would return the html source for example.com.
curl https://example.com/index.php?username=luffy
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://hostname/resource