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
|
2016-11-16 21:20:36 +08:00
|
|
|
Long: max-redirs
|
|
|
|
Arg: <num>
|
|
|
|
Help: Maximum number of redirects allowed
|
|
|
|
Protocols: HTTP
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --max-redirs 3 --location $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.5
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: location
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 21:20:36 +08:00
|
|
|
---
|
2021-07-20 13:06:56 +08:00
|
|
|
Set maximum number of redirections to follow. When --location is used, to
|
|
|
|
prevent curl from following too many redirects, by default, the limit is
|
|
|
|
set to 50 redirects. Set this option to -1 to make it unlimited.
|