mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
6e494a2390
- present tense - avoid bad words Closes #13003
28 lines
649 B
Markdown
28 lines
649 B
Markdown
---
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: proto-default
|
|
Help: Use PROTOCOL for any URL missing a scheme
|
|
Arg: <protocol>
|
|
Added: 7.45.0
|
|
Category: connection curl
|
|
Multi: single
|
|
See-also:
|
|
- proto
|
|
- proto-redir
|
|
Example:
|
|
- --proto-default https ftp.example.com
|
|
---
|
|
|
|
# `--proto-default`
|
|
|
|
Tells curl to use *protocol* for any URL missing a scheme name.
|
|
|
|
An unknown or unsupported protocol causes error
|
|
*CURLE_UNSUPPORTED_PROTOCOL* (1).
|
|
|
|
This option does not change the default proxy protocol (http).
|
|
|
|
Without this option set, curl guesses protocol based on the hostname, see
|
|
--url for details.
|