From: Brian Candler Date: 2003-05-16T22:32:34+09:00 Subject: Re: gzip cgi compression On Fri, May 16, 2003 at 10:10:02PM +0900, Dominik Werder wrote: > Is zlib compatible with HTTP-gzip-output-compression? > > I tried the following short code and I get a really good looking response, > but all browsers display only the compressed data. It seems, that they > don't unzip ? How are you running this? As a CGI under a webserver, or is there a Ruby TCP server which is not shown? As a CGI, the webserver would override your choices of transfer-coding and so on. In that case, I think you should leave off the 'chunking' and size fields, and just send the compressed file directly after the headers. For example, when sqwebmail uses gzip compression, it works in the normal way but just adds a "Content-Encoding: gzip" header. If it's a standalone-server, have you got the rest of the code you're running this with? Regards, Brian.