cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi-part HTTP POST and Read callback

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 23 Nov 2004 15:10:13 +0100 (CET)

On Tue, 23 Nov 2004, Arpad Zoldi wrote:

> Basically it seems that I can't add read callbacks with libcurl for a
> specific part (but I might be missing something). The message linked above
> was written in April, I was wondering if things have changed since then?

Nope, things are still like that and there are no plans in changing that.

> Is is possible to add a read callback for a part in a multi-part POST using
> the curl_multi API?

If you really don't want to let libcurl read the file (since it isn't
completely read into memory first and then posted anymore like that posting
explains), I suggest you do a POST with a read callback and provide the whole
multipart stream yourself.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-23