Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RFC 2965 cookies, cookielib, and mailman.

Thread Tools

RFC 2965 cookies, cookielib, and mailman.

John J Lee
Posts: n/a
Just noticed your post quoted below. Nobody but me knows or cares
about this obscure stuff so I'm not surprised you got no answer...

C. Titus Brown Dec 27 2004, 12:41 pm wrote:
> The issue turned out to be that mailman sends out RFC 2965 [1] cookies,
> which are by default rejected by cookielib. I don't remotely pretend to
> understand the issues involved; hence my post .
> A few questions for those more clued in than me:
> * what is the difference between RFC 2965 cookies and others?

See "Where can I find out more about the HTTP cookie protocol?" here:

For both very short, slightly longer (first link in that section, to a
section of the ClientCookie docs on the cookie standards), and
insanely detailed (Kristol's paper) explanations.

> * why would mailman implement RFC 2965 cookies over the old format?
> (I'm guessing simply because it's the latest/best/format?)

Because Barry didn't realise that almost no browsers implement it (and
never will), I guess.

> * why would cookielib NOT accept RFC 2965 cookies by default?

See above: browsers don't implement it. It's essentially dead as an
internet standard. The only real standard is "what IE and Mozilla
do", plus some wisdom from RFCs 2109, 2965 and (more readably!) 2964.

> In any case, the way to make the cookielib example work for mailman is
> like so:
> policy = cookielib.DefaultCookiePolicy(rfc2965=True)
> cj = cookielib.LWPCookieJar('cookies.lwp', policy=policy)

Hmm, cookielib should work if IE and Mozilla do, so that's a bug
You shouldn't need to turn on 2965 handling.

Do you have a script that demonstrates the problem, so I can fix it?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
an XML-based format with semantics like RFC 5322 (RFC 822)? Ivan Shmakov XML 3 02-13-2012 04:26 PM
Cookies and RFC 2109 mauro ASP .Net 5 07-19-2005 12:30 AM
Re: RFC 2965 cookies, cookielib, and mailman. Titus Brown Python 0 02-13-2005 08:49 PM
RFC 2965 cookies, cookielib, and mailman. C. Titus Brown Python 0 12-27-2004 08:41 PM
RFC's and acronyms G. Orme MCSE 8 01-19-2004 04:51 PM