[issue11652] urlib{, 2} returns a pair of integers as the content-length value

Santoso Wijaya report at bugs.python.org
Wed Mar 23 19:12:35 CET 2011


Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:

This affects urllib, as well:

C:\Users\santa>python
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.z
ip'
>>> fp = urllib.urlopen(request)
>>> fp.headers['content-length']
'289519, 289519'

----------
title: urlib2 returns a pair of integers as the content-length value -> urlib{,2} returns a pair of integers as the content-length value

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11652>
_______________________________________


More information about the Python-bugs-list mailing list