xref: /curl/docs/cmdline-opts/proto-default.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: proto-default
5Help: Use PROTOCOL for any URL missing a scheme
6Arg: <protocol>
7Added: 7.45.0
8Category: connection curl
9Multi: single
10See-also:
11  - proto
12  - proto-redir
13Example:
14  - --proto-default https ftp.example.com
15---
16
17# `--proto-default`
18
19Use *protocol* for any provided URL missing a scheme.
20
21An unknown or unsupported protocol causes error *CURLE_UNSUPPORTED_PROTOCOL*.
22
23This option does not change the default proxy protocol (http).
24
25Without this option set, curl guesses protocol based on the hostname, see
26--url for details.
27