HTTPS over proxy (squid) fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Unknown
|
Unknown
|
|||
python2.5 (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: python2.5
Https connections via a proxy (in this case squid) fail.
Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> filehandler = urllib2.urlopen("https:/
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _opener.open(url, data)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
meth(r, proxy, type))
File "/usr/lib/
return self.parent.
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib2.HTTPError: HTTP Error 501: Not Implemented
Changed in python2.5: | |
importance: | Undecided → Low |
status: | New → Confirmed |
This happens apparently due to a wrong proxy mechanism in the python library. SEE http:// sourceforge. net/tracker/ index.php? func=detail& aid=1424152& group_id= 5470&atid= 105470