ClientCookie 0.05b released

John J. Lee jjl@pobox.com
Mon, 6 May 2002 20:13:28 +0100


ClientCookie 0.05b

http://wwwsearch.sourceforge.net/ClientCookie

Changes since 0.03b
* Now works with Python 1.5.2 (including urllib2).
* Fixed Windows issues with _HTTPDate and _TimeLocal; all tests now
  pass on both Unix and Windows.
* Tested with Python versions 1.52, 2.0.0, 2.1.1 and 2.2.0.
* Set line endings to Unix convention.


ClientCookie is a Python module for handling cookies on the client side,
useful for accessing web sites that require cookies to be set, and
returned later.  It is a port of Gisle Aas' Perl module HTTP::Cookies,
from the libwww-perl library.  Both RFC 2965 and Netscape cookies are
supported.

 import ClientCookie
 import urllib2
 request = urllib2.Request("http://www.acme.com/")
 # note we're using the urlopen from ClientCookie, not urllib2
 result = ClientCookie.urlopen(request)
 # let's say this next request requires a cookie that was set in result
 request2 = urllib2.Request("http://www.acme.com/flying_machines.html")
 result2 = ClientCookie.urlopen(request2)

Python 1.5.2 or above is required, and urllib2 is recommended but not
required.  Note that the version of urllib2 from Python 2.0 is too old: if
you have Python 2.0, get the version from Python 2.1 (available from the
source distribution or CVS from http://www.python.org/), or use the
1.5.2-compatible version included with the ClientCookie distribution.

Distributed under the Perl Artistic License.


John