curl/docs/cmdline-opts/proto-default.d

21 lines
612 B
D
Raw Normal View History

c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
2016-11-16 21:20:36 +08:00
Long: proto-default
Help: Use PROTOCOL for any URL missing a scheme
Arg: <protocol>
Added: 7.45.0
Category: connection curl
Example: --proto-default https ftp.example.com
See-also: proto proto-redir
Multi: single
2016-11-16 21:20:36 +08:00
---
Tells curl to use *protocol* for any URL missing a scheme name.
2016-11-16 21:20:36 +08:00
An unknown or unsupported protocol causes error
*CURLE_UNSUPPORTED_PROTOCOL* (1).
2016-11-16 21:20:36 +08:00
This option does not change the default proxy protocol (http).
Without this option set, curl guesses protocol based on the host name, see
--url for details.