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


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


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


and recompile like this



Henrik Frystyk Nielsen,
World Wide Web Consortium
Received on Wednesday, 24 March 1999 11:46:41 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 14:24:34 UTC