On Fri, 1 Jul 2016, Tim Ruehsen wrote:

Currently, curl uses HTTP2 by default.

Yes, the command line tool does that for HTTPS URLs.

But the man pages says: use --http2 to switch it on.

Well, not exactly, but I agree that this default is not exactly clear. Any suggestion on how the best way to document this would be?

Using --no-http2 does not give an error, but HTTP2 is not switched off.

That's because http2 is not a boolean you can switch off, it asks for a specific version. If you don't want http2 you need to select what version you'd rather like. --http1.1 probably, perhaps --http2-prior-knowledge (in the HTTP case) or --http1.0.

Right now, the only way to switch HTTP2 off is using --no-alpn.

Unless your build and server also supports NPN as then curl can still negotiate HTTP/2 using that.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to