2018-05-28 20:16:27 +08:00
|
|
|
Long: url
|
2016-11-28 08:01:13 +08:00
|
|
|
Arg: <url>
|
|
|
|
Help: URL to work with
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: curl
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --url $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.5
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: next config
|
2016-11-28 08:01:13 +08:00
|
|
|
---
|
|
|
|
Specify a URL to fetch. This option is mostly handy when you want to specify
|
|
|
|
URL(s) in a config file.
|
|
|
|
|
|
|
|
If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
|
|
|
|
then curl will make a guess based on the host. If the outermost sub-domain
|
|
|
|
name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be
|
|
|
|
used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by
|
|
|
|
setting a default protocol, see --proto-default for details.
|
|
|
|
|
|
|
|
This option may be used any number of times. To control where this URL is
|
|
|
|
written, use the --output or the --remote-name options.
|
2020-03-09 21:59:21 +08:00
|
|
|
|
2021-08-31 22:37:14 +08:00
|
|
|
**WARNING**: On Windows, particular file:// accesses can be converted to
|
|
|
|
network accesses by the operating system. Beware!
|