cURL / Mailing Lists / curl-library / Single Mail

curl-library

Support for GZIP Content-Encoding in HTTP responses

From: <niclists_at_nichines.com>
Date: Fri, 11 Apr 2003 11:06:39 +0100

Hi,

I have developed a patch for version 7.10.4 which adds support for the GZIP
Content-Encoding method in HTTP responses.

It also fixes a bug in the handling of Chunked+Encoded responses.

I don't have too many reference sites to test it against but it does work
against Apache 2.0.45 mod_deflate, which confusingly does GZIP encoding not
deflate!

It also works against these sites:

http://sourceforge.net/ which does chunked GZIP.

   Server: Apache/1.3.27 (Unix) PHP/4.1.2 mod_ssl/2.8.12 OpenSSL/0.9.6b
   X-Powered-By: PHP/4.1.2
   X-Accelerated-By: PHPA/1.3.3r1
   ETag: "jpd-366613196.28588"
   Content-Encoding: gzip
   Connection: close
   Transfer-Encoding: chunked
   Content-Type: text/html

http://www.download32.com/

   Server: Microsoft-IIS/5.0 PipeBoost/1.04
   Date: Fri, 11 Apr 2003 10:04:45 GMT
   ETag: "10f2f9a191fec21:c7a"
   Content-Type: text/html
   Accept-Ranges: bytes
   Last-Modified: Wed, 09 Apr 2003 12:14:56 GMT
   Content-Location: http://www.download32.com/default.htm
   Content-Encoding: gzip
   Content-Length: 4027

It's a unified diff of 358 lines. Is anyone interested in this patch? If so
shall I post it to this list or something else?

Regards,

Nic Hines

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
Received on 2003-04-11