Limit download speed
Download a file at no more than 1 MB/s.
curl --limit-rate 1M -O https://example.com/bigfile.iso
More curl commands
-
curl -s -X POST https://api.example.com/v1/resource -H 'Content-Type: application/json' -H 'Authorization: Bearer <token>' -d '{"key":"value"}' | jq .Send a JSON POST request with a Bearer token and pretty-print the reply.
-
curl -sLv https://example.com 2>&1 | grep -E '^[<>*]'Follow redirects and show only request and response headers, without the body.
-
curl -so /dev/null -w 'DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n' https://example.comMeasure DNS lookup, connect, TTFB and total time.
-
curl -L --progress-bar -o output.file https://example.com/file.tar.gzDownload a file, follow redirects and show a simple progress bar.
-
curl -s -u user:password https://api.example.com/endpoint | jq .Send an HTTP request with a username and password (Basic Authentication).