cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Streaming data using Libcurl

From: Fabian Frank <fabian.frank.de_at_gmail.com>
Date: Thu, 27 Feb 2014 21:19:24 -0800

On Thu, Feb 27, 2014 at 3:43 PM, Sunny Khatri <sunny.kh03_at_gmail.com> wrote:
>
> I'm trying to use libcurl to stream data to the server. However, the
> problem is that as soon as server receives a chunk (cur_easy_perform), it
> tries to process that data, even though it's partial, which is expected
> given chunked encoding is used which sets the the content-length for that
> particular chunk.
>
What do you mean by "tries to process the data"? Do you control the server?
What kind of server/API are you talking to?

> Is there anything that needs to be set in the header to allow streaming of
> data. Ideally we want data to be processed at server only when we have send
> all the required data. Setting content-length is not an option as we don't
> know in advance what the total size of the data would be.
>
Is this a binary upload? If so, you might use a PUT request.

Regards,
Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-28