mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
68784d73c3
The file format for each option now features a "Example:" header that can provide one or more examples that get rendered appropriately in the output. All options MUST have at least one example or gen.pl complains at build-time. This fix also does a few other minor format and consistency cleanups. Closes #7654
17 lines
481 B
Makefile
17 lines
481 B
Makefile
Long: proto-default
|
|
Help: Use PROTOCOL for any URL missing a scheme
|
|
Arg: <protocol>
|
|
Added: 7.45.0
|
|
Category: connection curl
|
|
Example: --proto-default https ftp.example.com
|
|
---
|
|
Tells curl to use *protocol* for any URL missing a scheme name.
|
|
|
|
An unknown or unsupported protocol causes error
|
|
*CURLE_UNSUPPORTED_PROTOCOL* (1).
|
|
|
|
This option does not change the default proxy protocol (http).
|
|
|
|
Without this option set, curl guesses protocol based on the host name, see
|
|
--url for details.
|