ANN: ClientCookie 0.4.10 released

John J. Lee jjl@pobox.com
07 Dec 2003 00:09:29 +0000


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

Stable bugfix release.

Changes since 0.4.9:

(The first two are strictly interface changes, but they're tiny, honest.)

 * Various changes to debugging facilities.  See the docs at the web
   page for details of how this works now.
 * Removed HTTPStandardHeadersProcessor: it's now part of
   AbstractHTTPHandler.
 * Fixed a bug that caused urlopening some unicode URLs to unnecessarily
   raise UnicodeDecodeError.
 * HTTPEquivProcessor's max_time constructor arg can now be None,
   meaning no limit, and it should now work with XHTML for Pythons >=
   2.2.
 * More documentation updates and fixes.
 * Assorted minor bugfixes.
 * More unit tests for urllib2 stuff, and added a functional test to
   distribution.


Requires Python >= 1.5.2.

ClientCookie is a Python module for handling HTTP cookies on the client
client side, useful for accessing web sites that require cookies to be
set and then returned later.  It also provides some other (optional)
useful stuff: HTTP-EQUIV and Refresh handling, automatic adding of the
Referer [sic] header and lazily-seek()able responses.  These extras are
implemented using an extension that makes it easier to add new
functionality to urllib2.  It has developed from a port of Gisle Aas'
Perl module HTTP::Cookies, from the libwww-perl library.

Simple usage:

 import ClientCookie
 response = ClientCookie.urlopen("http://www.example.com/")

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


John