John J Lee <[EMAIL PROTECTED]> added the comment: 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 ---------- nosy: +jjlee _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2007> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com