h2c icon indicating copy to clipboard operation
h2c copied to clipboard

HTTP/2 without TLS does not work

Open onitake opened this issue 8 years ago • 4 comments

For debugging, it would be useful if h2c also supported raw HTTP/2 without first establishing a TLS channel. This is currently not possible, h2c will just fail.

Could you add this with an additional command line option or a fallback?

onitake avatar Mar 23 '17 10:03 onitake

Someone who desperately needs a usable http2 tester, +1000 for needing non-tls connections... especially when I'm hitting localhost.

JonathanHenson avatar Mar 30 '17 17:03 JonathanHenson

I found some alternatives:

  • curl --http2 --http2-prior-knowledge can do raw HTTP/2.
  • h2load does load tests and also supports insecure mode
  • Possibly some of these work too: https://github.com/http2/http2-spec/wiki/Tools

onitake avatar Mar 30 '17 21:03 onitake

i quickly hacked it to remove TLS https://github.com/aep/h2c this is a crappy hack but maybe its useful for someone else.

aep avatar Jun 12 '18 11:06 aep

I really think we should add non-TLS/h2c support in this client. This is often a well referenced tool when it comes to testing, and there are great usecases for not running TLS and not running a connection upgrade every time.

guilt avatar Apr 12 '19 17:04 guilt