docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 21:20:36 +08:00
|
|
|
Long: proto
|
|
|
|
Arg: <protocols>
|
|
|
|
Help: Enable/disable PROTOCOLS
|
|
|
|
Added: 7.20.2
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: connection curl
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- proto-redir
|
|
|
|
- proto-default
|
|
|
|
Example:
|
|
|
|
- --proto =http,https,sftp $URL
|
2016-11-16 21:20:36 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--proto`
|
|
|
|
|
2024-03-12 17:34:58 +08:00
|
|
|
Limit what protocols to allow for transfers. Protocols are evaluated left to
|
|
|
|
right, are comma separated, and are each a protocol name or 'all', optionally
|
|
|
|
prefixed by zero or more modifiers. Available modifiers are:
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## +
|
2016-11-16 21:20:36 +08:00
|
|
|
Permit this protocol in addition to protocols already permitted (this is
|
|
|
|
the default if no modifier is used).
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## -
|
2016-11-16 21:20:36 +08:00
|
|
|
Deny this protocol, removing it from the list of protocols already permitted.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## =
|
2016-11-16 21:20:36 +08:00
|
|
|
Permit only this protocol (ignoring the list already permitted), though
|
|
|
|
subject to later modification by subsequent entries in the comma separated
|
|
|
|
list.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
|
2023-12-16 18:46:31 +08:00
|
|
|
For example: --proto -ftps uses the default protocols, but disables ftps
|
|
|
|
|
|
|
|
--proto -all,https,+http only enables http and https
|
|
|
|
|
|
|
|
--proto =http,https also only enables http and https
|
|
|
|
|
2022-09-14 01:47:18 +08:00
|
|
|
Unknown and disabled protocols produce a warning. This allows scripts to
|
|
|
|
safely rely on being able to disable potentially dangerous protocols, without
|
|
|
|
relying upon support for that protocol being built into curl to avoid an error.
|
2016-11-16 21:20:36 +08:00
|
|
|
|
|
|
|
This option can be used multiple times, in which case the effect is the same
|
|
|
|
as concatenating the protocols into one instance of the option.
|