Senthil Kumaran <orsent...@gmail.com> added the comment:

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).

----------
assignee:  -> orsenthil
nosy: +orsenthil

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11652>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to