xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: max-redirs |
| 4 | Arg: <num> |
| 5 | Help: Maximum number of redirects allowed |
| 6 | Protocols: HTTP |
| 7 | Category: http |
| 8 | Example: --max-redirs 3 --location $URL |
| 9 | Added: 7.5 |
| 10 | See-also: location |
| 11 | Multi: single |
| 12 | --- |
| 13 | Set maximum number of redirections to follow. When --location is used, to |
| 14 | prevent curl from following too many redirects, by default, the limit is |
| 15 | set to 50 redirects. Set this option to -1 to make it unlimited. |