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 jjlee
Recipients
Date 2003-12-09.22:59:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=261020

Hmm, on 3., it's true that there is no documented way of 
getting at multiple headers (and in fact, at the moment the 
object returned by urlopen(url).info() is a subclass of 
mimetools.Message, which is deprecated, 
so .getallmatchingheaders() might well disappear soon).  
 
CVS rev 1.57 of httplib attempted to fix this (bug 432621), but  
the solution (making headers available joined with commas) is 
not sufficient, thanks to the nonstandard behaviour of 
Set-Cookie headers (Netscape cookie values may contain 
unquoted commas, in violation of RFC 2616). 
 
I suppose in future, HTTP response objects will be 
implemented using email.Message objects (since mimetools is 
deprecated), so it seems reasonable to add and document 
a .get_all(hdr_name) method to httplib.HTTPMessage (perhaps 
by going ahead and reimplementing it using email.Message). 
 
I'll put it on my list to write a patch. 
History
Date User Action Args
2008-01-20 09:59:28adminlinkissue841728 messages
2008-01-20 09:59:28admincreate