0

I using httpx and request some old website's xhr

# ... some errors
httpx.ConnectError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1131)

I was resolve this issue when to use requests Related

How can I solve this problem in httpx?

  • verify=False is not working
Atralupus
  • 131
  • 1
  • 7

1 Answers1

1

Once you put this code at the top it is solved

httpx._config.DEFAULT_CIPHERS += ":ALL:@SECLEVEL=1"

But I'm not sure if it's the right way

Atralupus
  • 131
  • 1
  • 7