Abort a transfer if speed drops below a threshold for too long.
Section: Downloads
Fail slow transfers
bash
bash
curl --speed-limit 1024 --speed-time 30 -O https://example.com/file.binExplanation
Good for automation where stuck connections should fail.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Downloads
Retry on all errors
Retry on all errors, including transient HTTP failures when appropriate.
Save using Content-Disposition filename
Use server-provided filename from headers.
Create local directories
Create local directories automatically for output paths.
Use a curl config file with URLs
Use a curl config file to store repeated options and URLs.