Downloading a file
curl --output <output-file-name> "<download-url>"
Using basic auth
curl -u ross:password 'https://example.com'
POSTing data with and without defining Headers
curl -d "param1=value1¶m2=value2" -X POST https://example.com/api/v1/submitsomedata/
curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST https://example.com/api/v1/submitsomedata/
Accessing insecure, self-signed cert sites
curl -k https://myinsecuresite.com
curl --insecure https://myinsecuresite.com