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.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.filename

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

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.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.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.

http.cookiejar.DefaultCookiePolicy.set_blocked_domains()

DefaultCookiePolicy.set_blocked_domains(blocked_domains) Set the sequence of blocked domains.

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_domain

DefaultCookiePolicy.strict_domain Don’t allow sites to set two-component domains with country-code top-level domains like .co.uk, .gov.uk, .co.nz.etc. This is far from perfect and isn’t guaranteed to work!

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 '$'.