Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect with h2c - HTTP/2 clear text protocol #90

Open
Aman-Singla-00 opened this issue May 6, 2022 · 2 comments
Open

Unable to connect with h2c - HTTP/2 clear text protocol #90

Aman-Singla-00 opened this issue May 6, 2022 · 2 comments

Comments

@Aman-Singla-00
Copy link

Is there any option to send request with h2c protocol..?

@codesenberg
Copy link
Owner

I'm afraid --fasthttp client doesn't support HTTP/2 at all (see valyala/fasthttp#144). Go's --http2 client seem to support of h2c.

@codesenberg codesenberg added this to the Unplanned milestone Apr 27, 2023
@shukla0411
Copy link

want to test it for h2c:

root@c-client:~# ./bombardier-linux-amd64 -c 1 -n 1 --http2 http://10.11.0.100
Bombarding http://10.11.0.100:80 with 1 request(s) using 1 connection(s)
1 / 1 [======================================================================================================================================] 100.00% 3/s 0s
Done!
Statistics Avg Stdev Max
Reqs/sec 190.46 0.00 190.46
Latency 4.64ms 0.00us 4.64ms
HTTP codes:
1xx - 0, 2xx - 0, 3xx - 0, 4xx - 0, 5xx - 0
others - 1
Errors:
Get "http://10.11.0.100:80": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x12\x04\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00" - 1
Throughput: 22.69KB/s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants