PixBin

curl cheatsheet

bash
Link
http://nyarlathotep.org/p/Gh2Zr6
Created
2026-08-17T23:24:32Z
Views
2606
# 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