proto-default.d 611 B

12345678910111213141516171819
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: proto-default
  4. Help: Use PROTOCOL for any URL missing a scheme
  5. Arg: <protocol>
  6. Added: 7.45.0
  7. Category: connection curl
  8. Example: --proto-default https ftp.example.com
  9. See-also: proto proto-redir
  10. ---
  11. Tells curl to use *protocol* for any URL missing a scheme name.
  12. An unknown or unsupported protocol causes error
  13. *CURLE_UNSUPPORTED_PROTOCOL* (1).
  14. This option does not change the default proxy protocol (http).
  15. Without this option set, curl guesses protocol based on the host name, see
  16. --url for details.