curl --retry 3 --retry-delay 2 --retry-all-errors https://example.com

Category: Web App Development

curl --retry 3 --retry-delay 2 --retry-all-errors https://example.com

Retry a request on transient failures

Retries the request up to three times, waiting two seconds between attempts. The --retry-all-errors flag extends retrying beyond timeouts to HTTP-level failures like 5xx responses. Handy for flaky networks in scripts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.