2
0

proto-redir.d 805 B

1234567891011121314151617181920
  1. Long: proto-redir
  2. Arg: <protocols>
  3. Help: Enable/disable PROTOCOLS on redirect
  4. Added: 7.20.2
  5. Category: connection curl
  6. Example: --proto-redir =http,https $URL
  7. ---
  8. Tells curl to limit what protocols it may use on redirect. Protocols denied by
  9. --proto are not overridden by this option. See --proto for how protocols are
  10. represented.
  11. Example, allow only HTTP and HTTPS on redirect:
  12. curl --proto-redir -all,http,https http://example.com
  13. By default curl will allow HTTP, HTTPS, FTP and FTPS on redirect (7.65.2).
  14. Older versions of curl allowed all protocols on redirect except several
  15. disabled for security reasons: Since 7.19.4 FILE and SCP are disabled, and
  16. since 7.40.0 SMB and SMBS are also disabled. Specifying *all* or *+all*
  17. enables all protocols on redirect, including those disabled for security.