Does http1.1 h2c support multiplexing?


I am trying to send multiple request using Golang while the server is http1.1 upgrade h2c which means support TCP only not TLS.
Anyone knows how to send multiple requests using a single TCP connection.

I got the following protocol when I checked my server using the following command:
curl -vvv --http2 -s ip:port

  • Trying…
  • Connected to ( port 8000 (#0)

GET / HTTP/1.1
User-Agent: curl/7.79.1
Accept: /
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 101 Switching Protocols
    < Connection: Upgrade
    < Upgrade: h2c
  • Received 101
  • Using HTTP2, server supports multiplexing
  • Connection state changed (HTTP/2 confirmed)
  • Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  • Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
    < HTTP/2 404
    < content-type: text/plain
    < content-length: 18
    < date: Wed, 02 Feb 2022 20:53:59 GMT
  • Closing connection 0
    404 page not found/

Your help is much appreciated.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.