http://wwwsearch.sourceforge.net/ClientCookie/ Changes since 0.3.1b: * MSIECookies now works. Thanks to Eric Woudenberg for a patch and Johnny Lee (no relation) for some help. * Small change to bugfixed HTTPRedirectHandler: 301 from a POST is now allowed, and redirected as a GET (see Python SF bug #549151). * Minor documentation fixes. * All tests now use unittest. * Fixed 1.5.2-compatibility bugs (revealed by existing tests -- seem to have been missed with old testing system for some unknown reason). 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 then returned later. It also provides some other (optional) useful stuff: HTTP-EQUIV handling, zero-time Refresh handling, and lazily-seekable responses. It has developed from 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
participants (1)
-
jjl@pobox.com