Issue 2007: cookielib lacks FileCookieJar class for Internet Explorer (original) (raw)

Created on 2008-02-04 19:35 by janssen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (9)
msg62046 - (view) Author: Bill Janssen (janssen) * (Python committer) Date: 2008-02-04 19:35
cookielib contains an implementation of FileCookieJar for Mozilla Firefox, which will work with most of the various Mozilla browsers, but no implementation for Internet Explorer, standard on Windows and used by some 80% of computer users.
msg62093 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-02-06 12:16
From the doc string: note that BSDDBCookieJar and the MSIE* classes are not distributed with the Python standard library, but are available from http://wwwsearch.sf.net/
msg62113 - (view) Author: Bill Janssen (janssen) * (Python committer) Date: 2008-02-06 18:34
Yes, I saw that, but it doesn't really help. Batteries not included. It suggests an approach to addressing this problem, though: see if the author will contribute the code under an appropriate licence. I intend to write an instance of FileCookieJar for Safari. Bill On Feb 6, 2008 4:16 AM, Christian Heimes <report@bugs.python.org> wrote: > > Christian Heimes added the comment: > > From the doc string: > note that BSDDBCookieJar and the MSIE* classes are not > distributed with the Python standard library, but are available from > http://wwwsearch.sf.net/ > > ---------- > nosy: +tiran > priority: -> normal > > __________________________________ > Tracker <report@bugs.python.org> > <http://bugs.python.org/issue2007> > __________________________________ >
msg74812 - (view) Author: John J Lee (jjlee) Date: 2008-10-15 20:12
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
msg74847 - (view) Author: John J Lee (jjlee) Date: 2008-10-16 19:32
Forgot to add: if somebody else does the work, I'm happy to agree to the code being used in Python stdlib. Perhaps it would be necessary to get the author of the original Perl code from which this MSIE class is derived to sign a contributor agreement, though (even though he already agreed to a BSD-ish license). FWIW, there's also a Firefox 3 cookies.sqlite cookiejar in the same package (though not yet used in anger by me, and wanting more tests, so marked experimental).
msg109820 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-07-10 06:07
Removed file was a dup of Jansen 2008-02-06 13:34 FileCookieJars are now in http.cookiejar. Doc says "The following CookieJar subclasses are provided for reading and writing . Further CookieJar subclasses, including one that reads Microsoft Internet Explorer cookies, are available at http://wwwsearch.sf.net/ClientCookie/." Link does not work and appears to be superseded by http://wwwsearch.sourceforge.net/mechanize/ If this issue is closed, at least that doc change should be made.
msg109850 - (view) Author: John J Lee (jjlee) Date: 2010-07-10 11:06
Suggest removing the comment that Terry refers to. That referenced MSIE code doesn't have an automated test, I've no idea whether it still works on modern Windows OSes, mechanize no longer supports use with urllib2, and I don't think that link is really appropriate in the docs anyway -- Google will likely give people more accurate information.
msg109960 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-07-11 05:03
I removed the documentation comment in r82785. But the report still holds till we have a class for handling MSIE Cookies.
msg340150 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2019-04-13 10:05
I don't think adding MSIE support is not worth enough for now.
History
Date User Action Args
2022-04-11 14:56:30 admin set github: 46291
2019-04-13 10:05:38 methane set status: open -> closednosy: + methanemessages: + resolution: out of datestage: needs patch -> resolved
2011-01-26 17:54:27 dstanek set nosy: + dstanek
2010-07-11 05:03:17 orsenthil set nosy: + orsenthilmessages: + stage: needs patch
2010-07-10 11:06:13 jjlee set messages: +
2010-07-10 06:07:25 terry.reedy set nosy: + terry.reedymessages: + versions: + Python 3.2, - Python 2.6, Python 3.0
2010-07-10 05:57:55 terry.reedy set files: - unnamed
2008-10-16 19:32:10 jjlee set messages: +
2008-10-15 20:12:52 jjlee set nosy: + jjleemessages: +
2008-02-06 18:34:04 janssen set files: + unnamedmessages: +
2008-02-06 12:16:17 christian.heimes set priority: normalnosy: + christian.heimesmessages: +
2008-02-04 19:56:09 georg.brandl set type: behavior -> enhancement
2008-02-04 19:35:52 janssen create