• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 Long: proto-default
2 Help: Use PROTOCOL for any URL missing a scheme
3 Arg: <protocol>
4 Added: 7.45.0
5 Category: connection curl
6 ---
7 Tells curl to use *protocol* for any URL missing a scheme name.
8 
9 Example:
10 
11  curl --proto-default https ftp.mozilla.org
12 
13 An unknown or unsupported protocol causes error
14 *CURLE_UNSUPPORTED_PROTOCOL* (1).
15 
16 This option does not change the default proxy protocol (http).
17 
18 Without this option curl would make a guess based on the host, see --url for
19 details.
20