W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Added quick HTTP cookie module showing how to extend libwww

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 24 Mar 1999 11:46:36 -0500
To: www-lib@w3.org
Message-ID: <36F916EC.EB22D75D@w3.org>

Based on Jim Raven's cookie code I added a simple module to libwww that
can parse and insert cookies in HTTP messages. The module doesn't
provide any cookie storage (jar?) as the application probably wants to
have them under lock. Storage is therefore handled though callbacks that
the application can register.

You can see a description of the module at

	http://www.w3.org/Library/src/HTCookie.html

However, what I think is the more important part of this exercise is
that it shows how to add a module like HTTP cookies to libwww without
affecting any other modules. When the module starts up, it registers its
own Set-Cookie header field parser and a before and after filter which
handles the cookie interactions.

This module should therefore be a useful place to start if you want to
extend libwww with other features similar to cookies.

The module is a bit rough - would somebody please help finishing it off?
It is part of the HTTP module, see

	http://www.w3.org/Library/User/Guide/#HTTP

As usual, you can get it from cvs as follows:

	http://www.w3.org/Library/cvs.html#update

and recompile like this

	http://www.w3.org/Library/cvs.html#Easy

Henrik

--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Wednesday, 24 March 1999 11:46:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT