HTTP 2 doesn't work. Response http_method still indicates it was used. #2822
-
|
I'm having an issue when using httpx with the http2=True option. Code used for testing: Output suggests that HTTP 2 was used: But inspecting the packet with Wireshark shows version 1.1: Using httpx[http2] version 0.24.1. Tested both in Windows and Linux, behaviour was consistent in both OS. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi Rafael! Are you certain that these are http/1.1 packets in wireshark? Also, if you just want to use http2, disable http1.1 by giving http1=False to the client. |
Beta Was this translation helpful? Give feedback.
-
|
Oops, my bad. It seems it was HTTP 2 traffic. Thank you for the help. |
Beta Was this translation helpful? Give feedback.
-
If you thought it was the http/1.1 packet based on the 'http/1.1' in the packet bytes, I guess it's just the tls alpn negotiation, which is used to determine whether the server prefers http/1.1 or h2. |
Beta Was this translation helpful? Give feedback.


If you thought it was the http/1.1 packet based on the 'http/1.1' in the packet bytes, I guess it's just the tls alpn negotiation, which is used to determine whether the server prefers http/1.1 or h2.