Retry on all errors, including transient HTTP failures when appropriate.

Section: Downloads

Retry on all errors

bash
bash
curl --retry 5 --retry-all-errors -O https://example.com/archive.tgz
Explanation

Stronger retry behavior for scripts and automation.

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 transient failures
Retry transient connection and timeout errors.
OpenIn sheetbashsame section
Save using Content-Disposition filename
Use server-provided filename from headers.
OpenIn sheetbashsame section
Create local directories
Create local directories automatically for output paths.
OpenIn sheetbashsame section
Limit transfer rate
Cap the download or upload speed.
OpenIn sheetbashsame section
Fail slow transfers
Abort a transfer if speed drops below a threshold for too long.
OpenIn sheetbashsame section
Use a curl config file with URLs
Use a curl config file to store repeated options and URLs.
OpenIn sheetbashsame section