mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
2bc1d775f5
- they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
23 lines
737 B
Makefile
23 lines
737 B
Makefile
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: proto-redir
|
|
Arg: <protocols>
|
|
Help: Enable/disable PROTOCOLS on redirect
|
|
Added: 7.20.2
|
|
Category: connection curl
|
|
Example: --proto-redir =http,https $URL
|
|
See-also: proto
|
|
Multi: single
|
|
---
|
|
Tells curl to limit what protocols it may use on redirect. Protocols denied by
|
|
--proto are not overridden by this option. See --proto for how protocols are
|
|
represented.
|
|
|
|
Example, allow only HTTP and HTTPS on redirect:
|
|
|
|
curl --proto-redir -all,http,https http://example.com
|
|
|
|
By default curl will only allow HTTP, HTTPS, FTP and FTPS on redirect (since
|
|
7.65.2). Specifying *all* or *+all* enables all protocols on redirects, which
|
|
is not good for security.
|