mirror of
https://github.com/curl/curl.git
synced 2026-06-08 01:44:16 +03:00
This document now lists all previous releases. This allows us to verify that documentation refers to actual release versions. Test 971 now verifies options-in-versions and all command line options documentation individually. Fixed a few discrepancies. Test 1488 verifies libcurl options "Added-in" to exist. Fixed a few discrepancies there as well. Closes #16907
757 B
757 B
| c | SPDX-License-Identifier | Long | Arg | Help | Added | Category | Multi | See-also | Example | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | proto-redir | <protocols> | Enable/disable PROTOCOLS on redirect | 7.21.0 | connection curl | single |
|
|
--proto-redir
Limit what protocols to allow on redirects. 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 only allows HTTP, HTTPS, FTP and FTPS on redirects (added in 7.65.2). Specifying all or +all enables all protocols on redirects, which is not good for security.