I'm having an issue tracking down why requests
fails to connect to a specific host.
The following works just fine via curl, or browser:
curl https://banking4.anz.com
However if I use requests:
requests.get('https://banking4.anz.com')
I get:
SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",)
On the wire, I see only the client hello and the server disconnects immediately, so it doesn't seem like any ssl or cipher incompatibility. (I'd expect an SSL-layer error for those) What else could be an issue in this case?
I'm on python 3.6.1 with requests 2.14.2 (with security extras).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…