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-default
|
|
|
|
Help: Use PROTOCOL for any URL missing a scheme
|
|
|
|
Arg: <protocol>
|
|
|
|
Added: 7.45.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: connection curl
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --proto-default https ftp.example.com
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: proto proto-redir
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 21:20:36 +08:00
|
|
|
---
|
2021-03-22 23:50:57 +08:00
|
|
|
Tells curl to use *protocol* for any URL missing a scheme name.
|
2016-11-16 21:20:36 +08:00
|
|
|
|
|
|
|
An unknown or unsupported protocol causes error
|
2021-03-22 23:50:57 +08:00
|
|
|
*CURLE_UNSUPPORTED_PROTOCOL* (1).
|
2016-11-16 21:20:36 +08:00
|
|
|
|
|
|
|
This option does not change the default proxy protocol (http).
|
|
|
|
|
2021-08-31 22:37:14 +08:00
|
|
|
Without this option set, curl guesses protocol based on the host name, see
|
|
|
|
--url for details.
|