curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: HTTP/3 options

From: Emil Engler via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 3 Jan 2023 21:49:59 +0100

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
Received on 2023-01-03