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 Billy.Saelim
Recipients Billy.Saelim
Date 2011-03-23.16:43:46
SpamBayes Score 0.0012112982
Marked as misclassified No
Message-id <1300898627.63.0.121848868508.issue11652@psf.upfronthosting.co.za>
In-reply-to
Content
urlopen does not always return a single value for 'content-length'.  For example:


>>> import urllib2
>>> request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip'
>>> fp = urllib2.urlopen(request)
>>> fp.info().dict
{'content-length': '289519, 289519', 'x-varnish': '929586024', 'via': '1.1 varnish', 'age': '0', 'expires': 'Fri, 25 Mar 2011 14:36:43 GMT', 'server': 'Apache/2.2.3 (CentOS)', 'last-modified': 'Sat, 07 Feb 2009 19:15:15 GMT', 'connection': 'close', 'etag': '"46aef-46258f510b6c0"', 'date': 'Wed, 23 Mar 2011 14:36:43 GMT', 'content-type': 'application/zip'}
History
Date User Action Args
2011-03-23 16:43:47Billy.Saelimsetrecipients: + Billy.Saelim
2011-03-23 16:43:47Billy.Saelimsetmessageid: <1300898627.63.0.121848868508.issue11652@psf.upfronthosting.co.za>
2011-03-23 16:43:47Billy.Saelimlinkissue11652 messages
2011-03-23 16:43:46Billy.Saelimcreate