proto-default.d 509 B

1234567891011121314151617
  1. Long: proto-default
  2. Help: Use PROTOCOL for any URL missing a scheme
  3. Arg: <protocol>
  4. Added: 7.45.0
  5. Category: connection curl
  6. Example: --proto-default https ftp.example.com
  7. See-also: proto proto-redir
  8. ---
  9. Tells curl to use *protocol* for any URL missing a scheme name.
  10. An unknown or unsupported protocol causes error
  11. *CURLE_UNSUPPORTED_PROTOCOL* (1).
  12. This option does not change the default proxy protocol (http).
  13. Without this option set, curl guesses protocol based on the host name, see
  14. --url for details.