RELEASE: ClientCookie 0.3.0b

jjl@pobox.com jjl@pobox.com
Thu, 6 Feb 2003 15:14:28 +0000


http://wwwsearch.sourceforge.net/ClientCookie/

Changes since 0.2.0b:

 * Fixed several important bugs.
 * Response objects now have lazy read, readline, readlines and seek
   methods.  Seekable responses are now optional (but on by default, as
   before).  Non-seekable objects are just the standard urllib2
   response objects (and hence are lazy, too).
 * Added backwards-compatible (ie. off by default) support for META
   HTTP-EQUIV and zero-time Refresh header redirection.
 * Added blocked_domains accessor methods.
 * Improved documentation.
 * Removed Apple Mac-specific code, since it has never been tested.
   If anybody wants it back, let me know.
 * Refactored Cookies.add_cookie_header and .extract_cookies methods.
 * Removed Python 1.5.2-compatible urllib2 / urllib.  Now separately
   downloadable.

 * Added UNTESTED (ie. non-working) Microsoft Internet Explorer (MSIE)
   cookie support (reading only).  I don't have a networked MS machine
   ATM, so testers are very welcome.

Requires Python >= 1.5.2.  urllib2 is recommended.  1.5.2-compatible
urllib2 / urllib is at

http://wwwsearch.sourceforge.net/

ClientCookie is a Python module for handling HTTP cookies on the client
side, useful for accessing web sites that require cookies to be set, and
returned later.  It also provides some other (optional) useful stuff:
HTTP-EQUIV handling, zero-time Refresh handling, and lazily-seekable
responses.  It is a port of Gisle Aas' Perl module HTTP::Cookies, from the
libwww-perl library.

 import ClientCookie
 response = ClientCookie.urlopen("http://foo.bar.com/")

This function behaves identically to urllib2.urlopen, except that it deals
with cookies automatically.  That's probably all you need to know.


John