url.d 898 B

12345678910111213141516171819202122232425
  1. c: Copyright (C) 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. If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
  15. then curl will make a guess based on the host. If the outermost sub-domain
  16. name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be
  17. used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by
  18. setting a default protocol, see --proto-default for details.
  19. To control where this URL is written, use the --output or the --remote-name
  20. options.
  21. **WARNING**: On Windows, particular file:// accesses can be converted to
  22. network accesses by the operating system. Beware!