Re: HTTPSConnection script fails, but only on some servers (long)
- From: "Paul Winkler" <stuff@xxxxxxxxxx>
- Date: 13 Apr 2005 12:52:05 -0700
pyg...@xxxxxxxxx wrote:
> I have a couple of recipes at the python cookbook site, that allows
> python to do proxy auth and ssl. The easiest one is:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/301740
Thanks for that John!
I gave it a whirl, changed the user, passwd, host, and phost and gave
it a run.
It instantly barfs with this:
Traceback (most recent call last):
File "testYetAnotherHttpsClient.py", line 25, in ?
ssl = socket.ssl(proxy, None, None)
File "/usr/lib/python2.3/socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile)
socket.sslerror: (8, 'EOF occurred in violation of protocol')
Hmm. On reflection, I don't think the problem solved by your script is
the
same as mine. As I understand it, your script connects to an
SSL-protected
server on port 443 by going through a plain HTTP proxy on port 80?
That's not the case for me. The server on port 80 is behind the
server on port 443.
.
- References:
- HTTPSConnection script fails, but only on some servers (long)
- From: Paul Winkler
- Re: HTTPSConnection script fails, but only on some servers (long)
- From: andreas
- Re: HTTPSConnection script fails, but only on some servers (long)
- From: pyguy2
- HTTPSConnection script fails, but only on some servers (long)
- Prev by Date: Re: smtplib does not send to all recipients
- Next by Date: Re: build flow? SCons? AAP? process creation?
- Previous by thread: Re: HTTPSConnection script fails, but only on some servers (long)
- Next by thread: Re: HTTPSConnection script fails, but only on some servers (long)
- Index(es):
Relevant Pages
|
Loading