cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Support for GZIP Content-Encoding in HTTP responses

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 24 Apr 2003 00:25:49 +0200 (CEST)

On Wed, 23 Apr 2003, Dan Fandrich wrote:

> > 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.

A fair suggestion indeed.

I'll try to take a stab at this soon, unless anyone else beats me to it.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-24