Skip to content
Discussion options

You must be logged in to vote

Hi! Sorry for the delayed answer.
I can guess the problem is that browsers somehow normalize their sni_hostname in the ssl context. Anyway, you can set the sni_hostname manually.

Try this

import httpx

url = "https://test_svc.gosgt.io/"

client = httpx.Client()

request = client.build_request("GET", url, extensions={"sni_hostname": "test-svc.gosgt.io"})

response = client.send(request)

print(response.text)  # ok

I don't know why the browser automatically changes the sni-hostname; I will double-check our implementation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@karpetrosyan
Comment options

Answer selected by teodoryantcheff
@teodoryantcheff
Comment options

@teodoryantcheff
Comment options

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