1 c: Copyright (C) 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. 16