Message61133
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. |
|
Date |
User |
Action |
Args |
2008-01-20 09:59:28 | admin | link | issue841728 messages |
2008-01-20 09:59:28 | admin | create | |
|