Python asks for SSL 504 error
I am trying to connect to a login page (https page) using requests. My code:
import requests
requests.get('https page')
This still returns:
SSLError: [Errno 1] _ssl.c:504: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
I installed verify=False
, but it still returns the same error.
+3
source to share
2 answers
The server requires SNI (Server Name Specification) and will raise a TLS warning if the SNI extension is not used. SNI is available with python 3 and with python 2.7.9+. For older versions of python see using requests with TLS no SNI support is provided .
+4
source to share