On Tue, Jan 03, 2023 at 12:27:49PM -0500, Timothe Litt via curl-library wrote:
> --http (or simply https?:// in a URL) means try whatever CURL is built with,
> highest to lowest version, modulo any knowledge it may have from past
> attempts.
> 
> --http=3 - use http3, fall back to 2, 1.1, 1.0, 0.9, ...
> 
> --http=3.  use http3 or die
> 
> --http=(3,1.1) - try http3, fall back to 1.1, 1.0...
> 
> --http=(3,1.1.) - try http3, 1.1 or die
> 
> --http=2. = Use http2 or die (roughly --http2 --http-prior-knowledge)

I like your idea of simplification! However, I personally believe, that
the following syntax may be more intuitive (and easier to implement).

--min-http=2    Use HTTP/2 and newer (HTTP/2 and HTTP/3)
--max-http=2    Use HTTP/2 and older (HTTP/2, HTTP/1.1 HTTP/1.0, ...)
--http=2        Use HTTP/2 and nothing else

Sincerely,
Emil
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to