cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP POSTing large amount of data in chunks

From: Zeman, Vaclav <Vaclav.Zeman_at_ca.com>
Date: Mon, 17 Jun 2013 11:07:38 +0000

Hi.

I am trying to find a way to HTTP POST larger amount of data that I am receiving from upstream (potentially) in chunks. It seems to me that the only way with libCurl is to accumulate all of the blocks I am receiving from upstream and build one large buffer that I can then set with CURLOPT_POSTFIELDS or CURLOPT_COPYPOSTFIELDS. Is this right? Is there any kind of “push” API as opposed to the “pull” API of CURLOPT_READFUNCTION?
 

-- 
VZ
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-17