Re: zlib example

At 22:00 02/17/98 -0600, Kent Vander Velden wrote:
>
>  Could someone please point me in the right direction for using www-lib
>and zlib to allow for automatic decompression of *.gz files?  An example
>would be perfect but pointers as to where to begin e.g. functions to
>look at would work as well.

libwww uses the "deflate" / "inflate" functions of the zlib library APIs.
These are at the algorithmic level identical to the gzip functions but the
latter also contains some file information such as file name, mode, etc.
Therefore, it is not immediately possible to use libwww on gz files.

However, there is a small program in

	http://www.w3.org/config/deflate.c

that can be used to generate a raw "deflate" file that libwww can use.

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk

Received on Wednesday, 18 February 1998 11:33:44 UTC