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 methane
Recipients methane
Date 2010年04月01日.16:08:30
SpamBayes Score 0.002017602
Marked as misclassified No
Message-id <1270138113.06.0.589316518246.issue8280@psf.upfronthosting.co.za>
In-reply-to
Content
>>> urllib2.urlopen("http://wave-robot-python-client.googlecode.com/svn/trunk/pydocs/index.html#module-wavelet")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\usr\Python2.6\lib\urllib2.py", line 126, in urlopen
 return _opener.open(url, data, timeout)
 File "C:\usr\Python2.6\lib\urllib2.py", line 398, in open
 response = meth(req, response)
 File "C:\usr\Python2.6\lib\urllib2.py", line 511, in http_response
 'http', request, response, code, msg, hdrs)
 File "C:\usr\Python2.6\lib\urllib2.py", line 436, in error
 return self._call_chain(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 370, in _call_chain
 result = func(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 519, in http_error_default
 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request
This happens when redirected URL contains fragment.
>>> urllib2.urlopen("http://goo.gl/z1d5")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\usr\Python2.6\lib\urllib2.py", line 126, in urlopen
 return _opener.open(url, data, timeout)
 File "C:\usr\Python2.6\lib\urllib2.py", line 398, in open
 response = meth(req, response)
 File "C:\usr\Python2.6\lib\urllib2.py", line 511, in http_response
 'http', request, response, code, msg, hdrs)
 File "C:\usr\Python2.6\lib\urllib2.py", line 430, in error
 result = self._call_chain(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 370, in _call_chain
 result = func(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 606, in http_error_302
 return self.parent.open(new, timeout=req.timeout)
 File "C:\usr\Python2.6\lib\urllib2.py", line 398, in open
 response = meth(req, response)
 File "C:\usr\Python2.6\lib\urllib2.py", line 511, in http_response
 'http', request, response, code, msg, hdrs)
 File "C:\usr\Python2.6\lib\urllib2.py", line 436, in error
 return self._call_chain(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 370, in _call_chain
 result = func(*args)
 File "C:\usr\Python2.6\lib\urllib2.py", line 519, in http_error_default
 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request
urllib2.Request.get_selector() should be:
 def get_selector(self):
 return self.__r_host.split('#')[0]
History
Date User Action Args
2010年04月01日 16:08:33methanesetrecipients: + methane
2010年04月01日 16:08:33methanesetmessageid: <1270138113.06.0.589316518246.issue8280@psf.upfronthosting.co.za>
2010年04月01日 16:08:31methanelinkissue8280 messages
2010年04月01日 16:08:30methanecreate

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