cURL Cheat Sheet
Curl is an awesome tool. I keep forgetting the switches though, so here’s a cheatsheet.
Simple GET request
JSON POST or PUT request
POST a file
Fake a /etc/hosts entry and a Host: header with curl
Make a request with basic auth enabled
Set the Referer header
Set the User Agent header
Time a request (connect time + time to first byte + total tile)
Downloading files from Github
Brian has spent more than fifteen years as Unix enthusiast, specalising in systems administration and solutions architecture for SMB's to Fortune 100 companies. His career has focused on emerging and niche technologies to major advancements in the industry - most notibly cloud.