Follow redirects with verbose
Follow up to 5 redirects and show full request/response
curl -Lv --max-redirs 5 https://example.com
- tool
- curl21 commands
More curl commands
-
curl -sSL -o /tmp/result.json https://api.example.com/dataDownload silently, fail on error, follow redirects
-
curl -o /dev/null -sS -w 'ttfb: %{time_starttransfer}s\ntotal: %{time_total}s\n' https://example.comBenchmark TTFB and total request time
-
curl -sI https://example.comPrint HTTP response headers without body
-
curl -F 'file=@./report.pdf' -F 'user=alice' https://upload.example.com/apiMultipart form-data upload with extra fields
-
curl --http2 -sI https://example.com | grep -i 'http\|alt-svc'Force HTTP/2 and check protocol in response