curl cheatsheet
bash
# GET with headers
curl -H "Accept: application/json" https://api.example.com/v1/status
# POST JSON
curl -X POST https://api.example.com/v1/items \
-H "Content-Type: application/json" \
-d '{"name":"widget","qty":3}'
# Follow redirects, show timing, save to file
curl -L -o out.bin -w "%{time_total}s\n" https://example.com/file
# Resume a partial download
curl -C - -O https://example.com/big.iso