POST JSON:
curl -X POST https://api.example.com/items \
-H "Content-Type: application/json" \
-d '{"name": "test", "value": 42}'With auth header:
curl -H "Authorization: Bearer $TOKEN" https://api.example.com/meFollow redirects and show response headers:
curl -L -i https://example.com/redirectTime the request:
curl -o /dev/null -s -w "HTTP %{http_code} in %{time_total}s\n" https://api.example.com/healthDownload with progress:
curl -# -O https://example.com/large-file.zip