[Web-SIG] Re: [client side] RFC 2616 HTTP header parsing, Digest
auth, and cookies
John J Lee
jjl at pobox.com
Tue Nov 11 07:14:05 EST 2003
On Mon, 10 Nov 2003, Anthony Baxter wrote:
> >>> John J Lee wrote
> > > (And, presumably, Greg S.'s auth code will eventually obsolete the current
> > > urllib2 auth code.)
> > So I guess there's no moral imperative <wink> on Anthony to fix
> > parse_http_list.
> I've not seen Greg's auth code, but I'm working on breaking out the digest
> auth code into a separate module. There's a bunch of non-HTTP protocols
> that can use digest auth (IMAP and SIP, to name two) so it makes sense.
Great, that would be perfect.
> Is there a thorough and exhaustive list of the various magic variants that
> need to be supported by this code?
Since you're working on Digest again, Greg looks like he's made a good job
of Digest parsing in httpx, so it would be better to use that instead of
the urllib2 stuff (and maybe more of httpx too).
Greg's _parse_challenges function does a proper job, and as a result is
more specialised than the urllib2.parse_*_list functions. That means I
can't use it for cookies, but that's not code duplication, so it's fine.
More information about the Web-SIG