url.d 942 B

123456789101112131415161718192021222324
  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. ---
  11. Specify a URL to fetch. This option is mostly handy when you want to specify
  12. URL(s) in a config file.
  13. If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
  14. then curl will make a guess based on the host. If the outermost sub-domain
  15. name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be
  16. used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by
  17. setting a default protocol, see --proto-default for details.
  18. This option may be used any number of times. To control where this URL is
  19. written, use the --output or the --remote-name options.
  20. **WARNING**: On Windows, particular file:// accesses can be converted to
  21. network accesses by the operating system. Beware!