Gordon
Gordon

Reputation: 402

Python urllib2 request to https failing

I get this error:

EOF occurred in violation of protocol

when trying to talk to a SOAP endpoint

import urllib2
req = urllib2.Request(url='my_end_point')
ahh = urllib2.urlopen(req)

Upvotes: 1

Views: 89

Answers (1)

Gordon
Gordon

Reputation: 402

the issue was SNI was enabled on the server I was trying to talk to. disabling SNI allowed me to connected. This solution is viable for me in the short term.

I spent hours googleing this!!!

Upvotes: 1

Related Questions