4 ms·
What's the support for HTTP/2 in tools like curl and socat?
by tuukkah 10y ago
What's the support for HTTP/2 in tools like curl and socat?
- tuukkah 10y agoAnswering myself: curl has supported HTTP/2 since 2013.
- syncsynchalt 10y ago<strike>None for netcat (it's a bare-wire tool, and doesn't support HTTP/1.1 either)</strike> sorry, I must have misread "socat" as "netcat". Since socat's HTTP integration is an HTTP proxy on port 8080 it should be transparent due to using "CONNECT" for https. curl offers --http2 and uses ALPN where available as explained here: https://curl.haxx.se/docs/http2.html https://curl.haxx.se/docs/http2.html
- martinflack 10y agoTry h2i too: https://github.com/bradfitz/http2/tree/master/h2i https://github.com/bradfitz/http2/tree/master/h2i