Closed viskok-yuri closed 5 months ago
https://github.com/yifeikong/curl_cffi/issues/323
Look, we need to solve this problem, I'm willing to pay 100-200$. Give me your contacts and we'll talk!
here's the solution on httpx, but I really want it to work in your library! It's all about the certificate, we need openssl, certifi.
import ssl import httpx
ssl_context = ssl.create_default_context() ssl_context.set_ciphers(':HIGH:!DH:!aNULL') ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE
LOCK = asyncio.Lock()
transport = httpx.AsyncHTTPTransport(retries=3, verify=ssl_context,) async with httpx.AsyncClient( headers=headers, transport=transport, timeout=300.0, follow_redirects=True ) as session:
Let's continue the discussion in the original issue.
https://github.com/yifeikong/curl_cffi/issues/323
Look, we need to solve this problem, I'm willing to pay 100-200$. Give me your contacts and we'll talk!
here's the solution on httpx, but I really want it to work in your library! It's all about the certificate, we need openssl, certifi.
import ssl import httpx
ssl_context = ssl.create_default_context() ssl_context.set_ciphers(':HIGH:!DH:!aNULL') ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE
LOCK = asyncio.Lock()
transport = httpx.AsyncHTTPTransport(retries=3, verify=ssl_context,) async with httpx.AsyncClient( headers=headers, transport=transport, timeout=300.0, follow_redirects=True ) as session: