lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | long: url |
| 2 | Arg: <url> |
| 3 | Help: URL to work with |
| 4 | --- |
| 5 | Specify a URL to fetch. This option is mostly handy when you want to specify |
| 6 | URL(s) in a config file. |
| 7 | |
| 8 | If the given URL is missing a scheme name (such as "http://" or "ftp://" etc) |
| 9 | then curl will make a guess based on the host. If the outermost sub-domain |
| 10 | name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be |
| 11 | used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by |
| 12 | setting a default protocol, see --proto-default for details. |
| 13 | |
| 14 | This option may be used any number of times. To control where this URL is |
| 15 | written, use the --output or the --remote-name options. |