blob: bb8940f7ef5bae2d85fe1bf4b905abd8ed78acee [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: proto-default
4Help: Use PROTOCOL for any URL missing a scheme
5Arg: <protocol>
6Added: 7.45.0
7Category: connection curl
8Example: --proto-default https ftp.example.com
9See-also: proto proto-redir
10Multi: single
11---
12Tells curl to use *protocol* for any URL missing a scheme name.
13
14An unknown or unsupported protocol causes error
15*CURLE_UNSUPPORTED_PROTOCOL* (1).
16
17This option does not change the default proxy protocol (http).
18
19Without this option set, curl guesses protocol based on the host name, see
20--url for details.