http.cookiejar.FileCookieJar.revert()

FileCookieJar.revert(filename=None, ignore_discard=False, ignore_expires=False) Clear all cookies and reload cookies from a saved file. revert() can raise the same exceptions as load(). If there is a failure, the object’s state will not be altered.

http.cookiejar.FileCookieJar.load()

FileCookieJar.load(filename=None, ignore_discard=False, ignore_expires=False) Load cookies from a file. Old cookies are kept unless overwritten by newly loaded ones. Arguments are as for save(). The named file must be in the format understood by the class, or LoadError will be raised. Also, OSError may be raised, for example if the file does not exist. Changed in version 3.3: IOError used to be raised, it is now an alias of OSError.

http.cookiejar.FileCookieJar.filename

FileCookieJar.filename Filename of default file in which to keep cookies. This attribute may be assigned to.

http.cookiejar.FileCookieJar.delayload

FileCookieJar.delayload If true, load cookies lazily from disk. This attribute should not be assigned to. This is only a hint, since this only affects performance, not behaviour (unless the cookies on disk are changing). A CookieJar object may ignore it. None of the FileCookieJar classes included in the standard library lazily loads cookies.

http.cookiejar.FileCookieJar

class http.cookiejar.FileCookieJar(filename, delayload=None, policy=None) policy is an object implementing the CookiePolicy interface. For the other arguments, see the documentation for the corresponding attributes. A CookieJar which can load cookies from, and perhaps save cookies to, a file on disk. Cookies are NOT loaded from the named file until either the load() or revert() method is called. Subclasses of this class are documented in section FileCookieJar subclasses and co-operation with

http.cookiejar.DefaultCookiePolicy.strict_rfc2965_unverifiable

DefaultCookiePolicy.strict_rfc2965_unverifiable Follow RFC 2965 rules on unverifiable transactions (usually, an unverifiable transaction is one resulting from a redirect or a request for an image hosted on another site). If this is false, cookies are never blocked on the basis of verifiability

http.cookiejar.DefaultCookiePolicy.strict_ns_unverifiable

DefaultCookiePolicy.strict_ns_unverifiable Apply RFC 2965 rules on unverifiable transactions even to Netscape cookies.

http.cookiejar.DefaultCookiePolicy.strict_ns_set_path

DefaultCookiePolicy.strict_ns_set_path Don’t allow setting cookies whose path doesn’t path-match request URI.

http.cookiejar.DefaultCookiePolicy.strict_ns_set_initial_dollar

DefaultCookiePolicy.strict_ns_set_initial_dollar Ignore cookies in Set-Cookie: headers that have names starting with '$'.

http.cookiejar.DefaultCookiePolicy.strict_ns_domain

DefaultCookiePolicy.strict_ns_domain Flags indicating how strict to be with domain-matching rules for Netscape cookies. See below for acceptable values.