PyDocs

Nav

Internet Protocols and Support

CookiePolicy

Defines which cookies get accepted from and returned to server.

May also modify cookies, though this is probably a bad idea.

The subclass DefaultCookiePolicy defines the standard rules for Netscape
and RFC 2965 cookies -- override that if you want a customized policy.
Members of CookiePolicy

d

domain_return_ok
Return false if cookies should not be returned, given cookie domain.

h

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

n

netscape
Implement Netscape protocol.

p

path_return_ok
Return false if cookies should not be returned, given cookie path.

r

return_ok
Return true if (and only if) cookie should be returned to server.
rfc2965
Implement RFC 2965 protocol.

s

set_ok
Return true if (and only if) cookie should be accepted from server.
0 Examples
No examples for http.cookiejar/CookiePolicy.
See Also
No see-alsos for http.cookiejar/CookiePolicy
0 Notes
No notes for CookiePolicy