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 orsenthil
Recipients Billy.Saelim, orsenthil, rhettinger, santoso.wijaya
Date 2011-03-23.22:58:51
SpamBayes Score 0.012503444
Marked as misclassified No
Message-id <1300921131.96.0.511785188993.issue11652@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, interesting that Content-Length is returned as a comma separated value of ints. 
Normally, this behavior is observed for other headers which can have multiple values and urllib appends the subsequent values of the header for e.g. Content-Type header.

curl seems to have got it right in this case, where it returns only one Content-Length header for the above URL. urllib needs to modify to deal with this scenario - If there are multiple content-lengths returned by the server, just use the last one if we are mimic curl behavior. (AFAIK, the standard is to return them comma separated, but in this case, it wont be useful).
History
Date User Action Args
2011-03-23 22:58:52orsenthilsetrecipients: + orsenthil, rhettinger, santoso.wijaya, Billy.Saelim
2011-03-23 22:58:51orsenthilsetmessageid: <1300921131.96.0.511785188993.issue11652@psf.upfronthosting.co.za>
2011-03-23 22:58:51orsenthillinkissue11652 messages
2011-03-23 22:58:51orsenthilcreate