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

Re: zlib example

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 18 Feb 1998 11:07:14 +0100
Message-Id: <>
To: Kent Vander Velden <graphix@toybox.cc.iastate.edu>, www-lib@w3.org
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


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

Henrik Frystyk Nielsen,
World Wide Web Consortium
Received on Wednesday, 18 February 1998 11:33:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC