homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kxroberto
Recipients
Date 2006年02月04日.17:50:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
py2.4.2/win32
The proxy mechanism of python fails on https and does
work completely wrong (not using the CONNECT scheme).
(after urlopen some minute(s) freeze then EOF error)
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import urllib
>>> urllib.getproxies()
{'ftp': 'ftp://vserver:3128', 'http':
'http://vserver:3128', 'gopher': 'gopher:/
/vserver:3128', 'https': 'https://vserver:3128'}
>>> urllib.urlopen('https://www.elster.de')
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "C:\Python24\lib\urllib.py", line 77, in urlopen
 return opener.open(url)
 File "C:\Python24\lib\urllib.py", line 185, in open
 return getattr(self, name)(url)
 File "C:\Python24\lib\urllib.py", line 386, in open_https
 h.endheaders()
 File "C:\Python24\lib\httplib.py", line 795, in
endheaders
 self._send_output()
 File "C:\Python24\lib\httplib.py", line 676, in
_send_output
 self.send(msg)
 File "C:\Python24\lib\httplib.py", line 643, in send
 self.connect()
 File "C:\Python24\lib\httplib.py", line 1071, in connect
 ssl = socket.ssl(sock, self.key_file, self.cert_file)
 File "C:\Python24\lib\socket.py", line 74, in ssl
 return _realssl(sock, keyfile, certfile)
IOError: [Errno socket error] (8, 'EOF occurred in
violation of protocol')
>>>
no CONNECT even appears in the squid proxy access log.
Robert
 
History
Date User Action Args
2007年08月23日 14:37:40adminlinkissue1424152 messages
2007年08月23日 14:37:40admincreate

AltStyle によって変換されたページ (->オリジナル) /