Hi
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 10.10.20.7:8000…
- Connected to amf.free5gc.org (10.10.20.7) port 8000 (#0)
GET / HTTP/1.1
Host: amf.free5gc.org:8000
User-Agent: curl/7.79.1
Accept: /
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: AAMAAABkAAQCAAAAAAIAAAAA
- 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.