cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Support for GZIP Content-Encoding in HTTP responses

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 23 Apr 2003 12:01:44 -0700

On Wed, Apr 23, 2003 at 11:59:51AM +0200, Daniel Stenberg wrote:
> On Wed, 16 Apr 2003, Dan Fandrich wrote:
>
> > I discovered another problem with the decompressing code.
>
> Your patches have been applied.
>
> Any chance you gzip-guys could help me out and produce one or more test cases
> that exercise this code in a controlled manner?

I took a stab at implementing a test for this, but the test harness doesn't
seem to provide a way to allow binary data to be sent or checked. Any
gzip-encoded data suitable for a test seems to require at least 3 NUL bytes
at the very least, and perl seems to choke on that. I could do it if
the file format were extended to support binary data, perhaps by adding
an optional tag element like:

  <data encoding=base64>

to the appropriate sections to specify that the data in the file must be
base64-decoded before being passed to the test script.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-23