proto-redir.md (757B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: proto-redir 5 Arg: <protocols> 6 Help: Enable/disable PROTOCOLS on redirect 7 Added: 7.21.0 8 Category: connection curl 9 Multi: single 10 See-also: 11 - proto 12 Example: 13 - --proto-redir =http,https $URL 14 --- 15 16 # `--proto-redir` 17 18 Limit what protocols to allow on redirects. Protocols denied by --proto are 19 not overridden by this option. See --proto for how protocols are represented. 20 21 Example, allow only HTTP and HTTPS on redirect: 22 23 curl --proto-redir -all,http,https http://example.com 24 25 By default curl only allows HTTP, HTTPS, FTP and FTPS on redirects 26 (added in 7.65.2). Specifying *all* or *+all* enables all protocols on 27 redirects, which is not good for security.