http.cookiejar.DefaultCookiePolicy.DomainLiberal

DefaultCookiePolicy.DomainLiberal Equivalent to 0 (ie. all of the above Netscape domain strictness flags switched off).

http.cookiejar.DefaultCookiePolicy.blocked_domains()

DefaultCookiePolicy.blocked_domains() Return the sequence of blocked domains (as a tuple).

http.cookiejar.DefaultCookiePolicy.allowed_domains()

DefaultCookiePolicy.allowed_domains() Return None, or the sequence of allowed domains (as a tuple).

http.cookiejar.DefaultCookiePolicy

class http.cookiejar.DefaultCookiePolicy(blocked_domains=None, allowed_domains=None, netscape=True, rfc2965=False, rfc2109_as_netscape=None, hide_cookie2=False, strict_domain=False, strict_rfc2965_unverifiable=True, strict_ns_unverifiable=False, strict_ns_domain=DefaultCookiePolicy.DomainLiberal, strict_ns_set_initial_dollar=False, strict_ns_set_path=False) Constructor arguments should be passed as keyword arguments only. blocked_domains is a sequence of domain names that we never accept coo

http.cookiejar.CookiePolicy.set_ok()

CookiePolicy.set_ok(cookie, request) Return boolean value indicating whether cookie should be accepted from server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.extract_cookies().

http.cookiejar.CookiePolicy.rfc2965

CookiePolicy.rfc2965 Implement RFC 2965 protocol.

http.cookiejar.CookiePolicy.return_ok()

CookiePolicy.return_ok(cookie, request) Return boolean value indicating whether cookie should be returned to server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.add_cookie_header().

http.cookiejar.CookiePolicy.path_return_ok()

CookiePolicy.path_return_ok(path, request) Return false if cookies should not be returned, given cookie path. See the documentation for domain_return_ok().

http.cookiejar.CookiePolicy.netscape

CookiePolicy.netscape Implement Netscape protocol.

http.cookiejar.CookiePolicy.hide_cookie2

CookiePolicy.hide_cookie2 Don’t add Cookie2 header to requests (the presence of this header indicates to the server that we understand RFC 2965 cookies).