docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2020-04-05 04:16:18 +08:00
|
|
|
Long: retry-all-errors
|
2020-05-12 15:12:13 +08:00
|
|
|
Help: Retry all errors (use with --retry)
|
2020-04-05 04:16:18 +08:00
|
|
|
Added: 7.71.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: curl
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- retry
|
|
|
|
Example:
|
|
|
|
- --retry 5 --retry-all-errors $URL
|
2020-04-05 04:16:18 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--retry-all-errors`
|
|
|
|
|
2020-04-05 04:16:18 +08:00
|
|
|
Retry on any error. This option is used together with --retry.
|
|
|
|
|
|
|
|
This option is the "sledgehammer" of retrying. Do not use this option by
|
2023-08-01 20:11:50 +08:00
|
|
|
default (for example in your **curlrc**), there may be unintended consequences
|
|
|
|
such as sending or receiving duplicate data. Do not use with redirected input
|
2024-02-27 17:35:28 +08:00
|
|
|
or output. You might be better off handling your unique problems in a shell
|
2023-08-01 20:11:50 +08:00
|
|
|
script. Please read the example below.
|
2020-04-05 04:16:18 +08:00
|
|
|
|
2021-08-31 22:37:14 +08:00
|
|
|
**WARNING**: For server compatibility curl attempts to retry failed flaky
|
|
|
|
transfers as close as possible to how they were started, but this is not
|
|
|
|
possible with redirected input or output. For example, before retrying it
|
|
|
|
removes output data from a failed partial transfer that was written to an
|
2024-02-07 01:07:07 +08:00
|
|
|
output file. However this is not true of data redirected to a | pipe or \>
|
2021-10-31 23:34:44 +08:00
|
|
|
file, which are not reset. We strongly suggest you do not parse or record
|
|
|
|
output via redirect in combination with this option, since you may receive
|
|
|
|
duplicate data.
|
2021-03-11 15:36:37 +08:00
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
By default curl does not return error for transfers with an HTTP response code
|
|
|
|
that indicates an HTTP error, if the transfer was successful. For example, if
|
|
|
|
a server replies 404 Not Found and the reply is fully received then that is
|
|
|
|
not an error. When --retry is used then curl retries on some HTTP response
|
|
|
|
codes that indicate transient HTTP errors, but that does not include most 4xx
|
|
|
|
response codes such as 404. If you want to retry on all response codes that
|
|
|
|
indicate HTTP errors (4xx and 5xx) then combine with --fail.
|