max-redirs.d 555 B

12345678910111213141516
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, 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. ---
  12. Set maximum number of redirections to follow. When --location is used, to
  13. prevent curl from following too many redirects, by default, the limit is
  14. set to 50 redirects. Set this option to -1 to make it unlimited.
  15. If this option is used several times, the last one will be used.