Download with progress curl
Download a file showing a clean progress bar
curl -L --progress-bar -o output.file https://example.com/file.tar.gz
more curl
all 21 commands →
Basic auth request
curl -s -u user:password https://api.example.com/endpoint | jq .
Check only HTTP status code
curl -so /dev/null -w '%{http_code}' https://example.com
POST JSON body
curl -X POST https://api.example.com/v1/items -H 'Content-Type: application/json' -d '{"name":"foo"}'
Bearer token auth
curl -H 'Authorization: Bearer $TOKEN' https://api.example.com/me
Follow redirects with verbose
curl -Lv --max-redirs 5 https://example.com