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 christian.heimes, janssen, jjlee
Date 2008-10-15.20:12:51
SpamBayes Score 1.1997962e-07
Marked as misclassified No
Message-id <1224101573.41.0.476938288477.issue2007@psf.upfronthosting.co.za>
In-reply-to
Content
Note that the code on wwwsearch.sf.net only reads cookies, and does not
write them.  Also, the approach used is fragile to changes to MS's
"index.dat" database, which was the reason why that code was not
included when cookielib was added.  As far as I know, the index.dat
format is not specified and is subject to change or removal by MS.  It's
possible that that MSIE cookiejar is already broken on Windows Vista,
for example, since I have never tested it on that platform.

An alternative approach that should allow writing cookies would be to
use InternetGetCookie / InternetSetCookie API:

http://msdn.microsoft.com/en-us/library/aa384710(VS.85).aspx

A *sketch* of that approach (which I'm not going to implement properly)
is here:

http://codespeak.net/svn/wwwsearch/mechanize/trunk/attic/MSIEDBCookieJar.py

The other, fragile (but working, at least on some MS OSes) approach:

http://codespeak.net/svn/wwwsearch/mechanize/trunk/mechanize/_msiecookiejar.py
History
Date User Action Args
2008-10-15 20:12:53jjleesetrecipients: + jjlee, janssen, christian.heimes
2008-10-15 20:12:53jjleesetmessageid: <1224101573.41.0.476938288477.issue2007@psf.upfronthosting.co.za>
2008-10-15 20:12:52jjleelinkissue2007 messages
2008-10-15 20:12:51jjleecreate