cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] chunked Transfer-Encoding upload

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Nov 2002 09:11:12 +0100 (MET)

On Thu, 7 Nov 2002 RBramante_at_on.com wrote:

> At least for a temporary fix, I implemented the chunked-encoding as part of
> my callback.
>
> Now I automatically prepend/append the chunk encodings to the data buffers
> I am sending. I manually add the "Transfer-Encoding: chunked" header via
> CURLOPT_HTTPHEADER and viola, chunked encoded puts.
>
> This could serve to be a temporary solution to anyone that needs this until
> it can go into curl proper. If I get time I'll try to have a look at doing
> that.

I had a go at this myself and the attached patch is my attempt at
implementing chunked Transfer-Encoding upload.

I haven't yet written any test cases for this as the test web server needs to
be adjusted as well to work with chunked uploads.

-- 
 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 2002-11-11