proto-redir.d 736 B

123456789101112131415161718192021
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: proto-redir
  4. Arg: <protocols>
  5. Help: Enable/disable PROTOCOLS on redirect
  6. Added: 7.20.2
  7. Category: connection curl
  8. Example: --proto-redir =http,https $URL
  9. See-also: proto
  10. ---
  11. Tells curl to limit what protocols it may use on redirect. Protocols denied by
  12. --proto are not overridden by this option. See --proto for how protocols are
  13. represented.
  14. Example, allow only HTTP and HTTPS on redirect:
  15. curl --proto-redir -all,http,https http://example.com
  16. By default curl will only allow HTTP, HTTPS, FTP and FTPS on redirect (since
  17. 7.65.2). Specifying *all* or *+all* enables all protocols on redirects, which
  18. is not good for security.