Download with progress
Download a file showing a clean progress bar
curl -L --progress-bar -o output.file https://example.com/file.tar.gz
- tool
- curl21 commands
More curl commands
-
curl -s -u user:password https://api.example.com/endpoint | jq .HTTP request with Basic Authentication
-
curl -so /dev/null -w '%{http_code}' https://example.comGet just the response status code — useful in scripts
-
curl -X POST https://api.example.com/v1/items -H 'Content-Type: application/json' -d '{"name":"foo"}'Send JSON payload via POST
-
curl -H 'Authorization: Bearer $TOKEN' https://api.example.com/meAttach JWT/Bearer token in Authorization header
-
curl -Lv --max-redirs 5 https://example.comFollow up to 5 redirects and show full request/response