Send GET request using cURL
1. Check if cURL is installed
curl --version
2. HTTP GET request
curl https://zerotutorials.com
3. HTTP GET request and follow redirects
curl -L https://zerotutorials.com
4. HTTP GET with json
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
5. HTTP GET with xml
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://hostname/resource
6. Save the output of HTTP GET to file
curl -o result.html https://zerotutorials.com
7. Retrieving only the response headers
curl -I https://zerotutorials.com
8. Retrieving a verbose result using cURL
curl -v https://zerotutorials.com