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