master-server/deps/curl/docs/cmdline-opts/proto-default.md

27 lines
635 B
Markdown
Raw Normal View History

2024-05-15 15:20:32 -04:00
---
2023-12-11 20:30:44 -05:00
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
2024-05-15 15:20:32 -04:00
See-also:
- proto
- proto-redir
Example:
- --proto-default https ftp.example.com
2023-12-11 20:30:44 -05:00
---
2024-05-15 15:20:32 -04:00
# `--proto-default`
Use *protocol* for any provided URL missing a scheme.
An unknown or unsupported protocol causes error *CURLE_UNSUPPORTED_PROTOCOL*.
2023-12-11 20:30:44 -05:00
This option does not change the default proxy protocol (http).
2024-05-15 15:20:32 -04:00
Without this option set, curl guesses protocol based on the hostname, see
2023-12-11 20:30:44 -05:00
--url for details.