xref: /aosp_15_r20/external/curl/docs/cmdline-opts/proto-default.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: proto-default
5*6236dae4SAndroid Build Coastguard WorkerHelp: Use PROTOCOL for any URL missing a scheme
6*6236dae4SAndroid Build Coastguard WorkerArg: <protocol>
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.45.0
8*6236dae4SAndroid Build Coastguard WorkerCategory: connection curl
9*6236dae4SAndroid Build Coastguard WorkerMulti: single
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - proto
12*6236dae4SAndroid Build Coastguard Worker  - proto-redir
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --proto-default https ftp.example.com
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--proto-default`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerUse *protocol* for any provided URL missing a scheme.
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard WorkerAn unknown or unsupported protocol causes error *CURLE_UNSUPPORTED_PROTOCOL*.
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard WorkerThis option does not change the default proxy protocol (http).
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard WorkerWithout this option set, curl guesses protocol based on the hostname, see
26*6236dae4SAndroid Build Coastguard Worker--url for details.
27