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.set_blocked_domains()

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

http.cookiejar.DefaultCookiePolicy.set_allowed_domains()

DefaultCookiePolicy.set_allowed_domains(allowed_domains) Set the sequence of allowed domains, or None.

http.cookiejar.DefaultCookiePolicy.rfc2109_as_netscape

DefaultCookiePolicy.rfc2109_as_netscape If true, request that the CookieJar instance downgrade RFC 2109 cookies (ie. cookies received in a Set-Cookie header with a version cookie-attribute of 1) to Netscape cookies by setting the version attribute of the Cookie instance to 0. The default value is None, in which case RFC 2109 cookies are downgraded if and only if RFC 2965 handling is turned off. Therefore, RFC 2109 cookies are downgraded by default.

http.cookiejar.DefaultCookiePolicy.is_not_allowed()

DefaultCookiePolicy.is_not_allowed(domain) Return whether domain is not on the whitelist for setting or receiving cookies.

http.cookiejar.DefaultCookiePolicy.is_blocked()

DefaultCookiePolicy.is_blocked(domain) Return whether domain is on the blacklist for setting or receiving cookies.

http.cookiejar.DefaultCookiePolicy.DomainStrictNonDomain

DefaultCookiePolicy.DomainStrictNonDomain Cookies that did not explicitly specify a domain cookie-attribute can only be returned to a domain equal to the domain that set the cookie (eg. spam.example.com won’t be returned cookies from example.com that had no domain cookie-attribute).

http.cookiejar.DefaultCookiePolicy.DomainStrictNoDots

DefaultCookiePolicy.DomainStrictNoDots When setting cookies, the ‘host prefix’ must not contain a dot (eg. www.foo.bar.com can’t set a cookie for .bar.com, because www.foo contains a dot).

http.cookiejar.DefaultCookiePolicy.DomainStrict

DefaultCookiePolicy.DomainStrict Equivalent to DomainStrictNoDots|DomainStrictNonDomain.

http.cookiejar.DefaultCookiePolicy.DomainRFC2965Match

DefaultCookiePolicy.DomainRFC2965Match When setting cookies, require a full RFC 2965 domain-match.