You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that httpx is enforcing ALPN in its TLS handshake even with custom SSLContext. Is there a way to disable this? I want to produce a specific JA3 string for the TLS Client Hello. Enforcing ALPN produces a JA3 hash outside the user's control.
The following code is what I used to inspect with wireshark:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
async with AsyncClient(http2=False, follow_redirects=False, verify=context) as c:
await c.get('https://httpbin.org/')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed that
httpx
is enforcing ALPN in its TLS handshake even with customSSLContext
. Is there a way to disable this? I want to produce a specific JA3 string for the TLS Client Hello. Enforcing ALPN produces a JA3 hash outside the user's control.The following code is what I used to inspect with wireshark:
Beta Was this translation helpful? Give feedback.
All reactions