Author henriko
Recipients DenNukem, henriko, jjlee, loewis
Date 2009-03-02.12:11:38
SpamBayes Score 0.000125992
Marked as misclassified No
Message-id <1235995901.66.0.751451758988.issue3924@psf.upfronthosting.co.za>
In-reply-to
Content
The cookiejar workaround in the first comment did not work for me. The
cookies didn't stick in it. I guess version needs to be set.. this
worked for me:

class ForgivingCookieJar(cookielib.CookieJar):
    def _cookie_from_cookie_tuple(self, tup, request):
        name, value, standard, rest = tup
        version = standard.get("version", None)
        if version is not None:
            # Some servers add " around the version number, this module
expects a pure int.
            standard["version"] = version.strip('"')
        return cookielib.CookieJar._cookie_from_cookie_tuple(self, tup,
request)
History
Date User Action Args
2009-03-02 12:11:41henrikosetrecipients: + henriko, loewis, jjlee, DenNukem
2009-03-02 12:11:41henrikosetmessageid: <1235995901.66.0.751451758988.issue3924@psf.upfronthosting.co.za>
2009-03-02 12:11:39henrikolinkissue3924 messages
2009-03-02 12:11:38henrikocreate