How to use HTTP 2 with curl
curl offers the
--http2
command line option to enable use of HTTP/2.curl offers the -
-http2-prior-knowledge
command line option to enable use of HTTP/2 without HTTP/1.1 Upgrade.Since 7.47.0, the curl tool enables HTTP/2 by default for HTTPS connections.
Source: HTTP/2 with curl