← All notes

curl --retry repeats a transfer after certain transient errors

Answer: The --retry option tells curl to retry certain failed transfers. By default curl does no retries. A transient error includes a timeout, an FTP 4xx response, or HTTP 408, 429, 500, 502, 503, 504, 522, or 524. --retry-max-time caps the total time allowed for retries. --retry-all-errors makes curl treat all transfer failures as a reason to retry.

Notes

The man page help text is "Retry request if transient problems occur". When curl is about to retry a transfer, it first waits before the next attempt.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Everything curl, Retry; curl/curl (GitHub), --retry. CC-BY-4.0 (https://raw.githubusercontent.com/curl/everything-curl/master/LICENSE). Copyright the everything curl authors. curl license (MIT-derived) (https://raw.githubusercontent.com/curl/curl/master/COPYING). Copyright (c) 1996 - 2026, Daniel Stenberg, and many contributors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Everything curl, Retry; curl/curl (GitHub), --retry. CC-BY-4.0 (https://raw.githubusercontent.com/curl/everything-curl/master/LICENSE). Copyright the everything curl authors. curl license (MIT-derived) (https://raw.githubusercontent.com/curl/curl/master/COPYING). Copyright (c) 1996 - 2026, Daniel Stenberg, and many contributors.

Cite this

Permanent ID: iil:note:8w0zq99s

iinventedlight. 2026. "curl --retry repeats a transfer after certain transient errors." iinventedlight Library, iil:note:8w0zq99s, version of 2026-11-23. https://iinventedlight.com/library/notes/curl-retry/. License: CC-BY-4.0.

@misc{iil_note_8w0zq99s,
  author = {{iinventedlight}},
  title = {{curl --retry repeats a transfer after certain transient errors}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-23},
  url = {https://iinventedlight.com/library/notes/curl-retry/},
  note = {Permanent ID iil:note:8w0zq99s. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/curl-retry.md.