max-redirs.md (525B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: max-redirs 5 Arg: <num> 6 Help: Maximum number of redirects allowed 7 Protocols: HTTP 8 Category: http 9 Added: 7.5 10 Multi: single 11 See-also: 12 - location 13 Example: 14 - --max-redirs 3 --location $URL 15 --- 16 17 # `--max-redirs` 18 19 Set the maximum number of redirections to follow. When --location is used, to 20 prevent curl from following too many redirects, by default, the limit is 21 set to 50 redirects. Set this option to -1 to make it unlimited.