Web requests

Command Description
 curl http://LEGALCORP.com GET request with cURL
 curl http://LEGALCORP.com -v Verbose GET request with cURL
curl http://admin:[email protected]/ -vvv cURL Basic Auth login
curl -u admin:password http://LEGALCORP.com/ -vvv Alternate cURL Basic Auth login
curl -u admin:password -L http://LEGALCORP.com/ cURL Basic Auth login, follow redirection
curl -u admin:password 'http://LEGALCORP.com/search.php?port_code=us' cURL GET request with parameter
curl -d 'username=admin&password=password' -L http://LEGALCORP.com/login.php POST request with cURL
curl -d 'username=admin&password=password' -L http://LEGALCORP.com/login.php -v Debugging with cURL
curl -d 'username=admin&password=password' -L --cookie-jar /dev/null http://LEGALCORP.com/login.php -v Cookie usage with cURL
curl -d 'username=admin&password=password' -L --cookie-jar cookies.txt http://LEGALCORP.com/login.php cURL with cookie file
curl -H 'Content-Type: application/json' -d '{ "username" : "admin", "password" : "password" }' cURL specify content type
curl -X OPTIONS http://LEGALCORP.com/ -vv cURL OPTIONS request
curl -X PUT -d @test.txt http://LEGALCORP.com/test.txt -vv File upload with cURL
curl -X DELETE http://LEGALCORP.com/test.txt -vv DELETE method with cURL