xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: proto-default |
| 4 | Help: Use PROTOCOL for any URL missing a scheme |
| 5 | Arg: <protocol> |
| 6 | Added: 7.45.0 |
| 7 | Category: connection curl |
| 8 | Example: --proto-default https ftp.example.com |
| 9 | See-also: proto proto-redir |
| 10 | Multi: single |
| 11 | --- |
| 12 | Tells curl to use *protocol* for any URL missing a scheme name. |
| 13 | |
| 14 | An unknown or unsupported protocol causes error |
| 15 | *CURLE_UNSUPPORTED_PROTOCOL* (1). |
| 16 | |
| 17 | This option does not change the default proxy protocol (http). |
| 18 | |
| 19 | Without this option set, curl guesses protocol based on the host name, see |
| 20 | --url for details. |