Does M2Crypto support https through proxies??
whale
whale at mycameo.com
Wed Mar 26 05:57:49 EST 2003
Does M2Crypto support https through proxies??
I use M2Crypto m2urllib to open web pages.
And I set a proxy(ex. squid proxy server) at IE configuration.
import M2Crypto
u = M2Crypto.m2urllib.URLopener()
u.open('http://www.mywebserver.com')
u.open('https://www.mywebserver.com')
When I open a http web page, I can receive the response correctly.
But when I open a https web page(ex. u.open('https://www.mywebserver.com')),
I got Exception message after waiting about 15 secs.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "D:\Python21\lib\urllib.py", line 176, in open
return getattr(self, name)(url)
File "D:\Python21\M2Crypto\m2urllib.py", line 63, in open_https
h.putrequest('GET', selector)
File "D:\Python21\lib\httplib.py", line 439, in putrequest
self.send(str)
File "D:\Python21\lib\httplib.py", line 380, in send
self.connect()
File "D:\Python21\M2Crypto\httpslib.py", line 76, in connect
self.sock.connect((self.host, self.port))
File "D:\Python21\M2Crypto\SSL\Connection.py", line 103, in connect
return self.connect_ssl()
File "D:\Python21\M2Crypto\SSL\Connection.py", line 96, in connect_ssl
return m2.ssl_connect(self.ssl)
M2Crypto.SSL.SSLError: unexpected eof
More information about the Python-list
mailing list