Python-requests 2.0.0 - [Errno 8] _ssl.c: 504: EOF occurred with protocol violation

I am using Requests 2.0.0 and could not complete the https GET request with:

requests.get('https://backend.iddiction.com/rest/v1/s2s/confirm_install?apphandle=slotsjourneyofmagic&appsecret=5100d103e146e2c3f22af2c24ff4e2ec&mac=50:EA:D6:E7:9B:C2&idfa=134DA32A-A99F-4864-B69E-4A7A2EFC6C25')

I get this error:

[Errno 8] _ssl.c:504: EOF occurred in violation of protocol.

I read a lot of content on the Internet and on this site, but everyone where I read it says that these problems are fixed in version 2.0.0.

Can anyone advise here?

+4
source share
1 answer

The server requires you to use SNI, which is usually not available in Python 2.x.

URL- Wireshark TLS, , Chrome , .

, Python 3, SNI , SNI Python 2.x :

  • pyopenssl
  • -httpsclient
  • pyasn1

.

+10