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: url |
| 4 | Arg: <url> |
| 5 | Help: URL to work with |
| 6 | Category: curl |
| 7 | Example: --url $URL |
| 8 | Added: 7.5 |
| 9 | See-also: next config |
| 10 | Multi: append |
| 11 | --- |
| 12 | Specify a URL to fetch. This option is mostly handy when you want to specify |
| 13 | URL(s) in a config file. |
| 14 | |
| 15 | If the given URL is missing a scheme name (such as "http://" or "ftp://" etc) |
| 16 | then curl will make a guess based on the host. If the outermost sub-domain |
| 17 | name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be |
| 18 | used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by |
| 19 | setting a default protocol, see --proto-default for details. |
| 20 | |
| 21 | To control where this URL is written, use the --output or the --remote-name |
| 22 | options. |
| 23 | |
| 24 | **WARNING**: On Windows, particular file:// accesses can be converted to |
| 25 | network accesses by the operating system. Beware! |