PyDocs

Internet Protocols and Support

http.cookiejar

HTTP cookie handling for web clients.

This module has (now fairly distant) origins in Gisle Aas' Perl module
HTTP::Cookies, from the libwww-perl library.

Docstrings, comments and debug strings in this code refer to the
attributes of the HTTP cookie system as cookie-attributes, to distinguish
them clearly from Python attributes.

Class diagram (note that BSDDBCookieJar and the MSIE* classes are not
distributed with the Python standard library, but are available from
http://wwwsearch.sf.net/):

                        CookieJar____
                        /     \      \
            FileCookieJar      \      \
             /    |   \         \      \
 MozillaCookieJar | LWPCookieJar \      \
                  |               |      \
                  |   ---MSIEBase |       \
                  |  /      |     |        \
                  | /   MSIEDBCookieJar BSDDBCookieJar
                  |/
               MSIECookieJar
Symbols in http.cookiejar

c

Cookie
HTTP Cookie.
CookieJar
Collection of HTTP cookies.
CookiePolicy
Defines which cookies get accepted from and returned to server.

d

DefaultCookiePolicy
Implements the standard rules for accepting and returning cookies.

f

FileCookieJar
CookieJar that can be loaded from and saved to a file.

l

LoadError
Instances of FileCookieJar raise this exception on failure to load cookies from a file.
LWPCookieJar
The LWPCookieJar saves a sequence of "Set-Cookie3" lines.

m

MozillaCookieJar
WARNING: you may want to backup your browser's cookies file if you use this class to save cookies.