[issue11280] urllib2 http_error_302 calls undefined "getheaders" method
Andres Riancho
report at bugs.python.org
Tue Feb 22 13:32:09 CET 2011
Andres Riancho <andres.riancho at gmail.com> added the comment:
One more comment to be added. Please take a look at the following [0] w3af bug report. The interesting part starts at "[ Sun Nov 28 01:25:47 2010 - debug ] Traceback (most recent call last):".
In there you'll find that my w3af code had a section of urllib2's code in logHandler.py (self.original_http_error_302(req, fp, code, msg, headers)) and that the error is very clear (to me at least):
[ Sun Nov 28 01:25:47 2010 - debug ] newurl = headers.getheaders('location')[0]
[ Sun Nov 28 01:25:47 2010 - debug ] AttributeError?: 'dict' object has no attribute 'getheaders'
[0] https://sourceforge.net/apps/trac/w3af/ticket/160511
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11280>
_______________________________________
More information about the Python-bugs-list
mailing list