cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: posting large amounts of data

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 26 Jun 2008 14:00:31 -0700

On Thu, Jun 26, 2008 at 11:05:34AM -0700, Alan Wolfe wrote:
> Is there a way with libcurl to do something such as calculate the size of the
> post data up front (to set the content length value manually) and then as curl
> is sending the post data, to actually stream the post data from disk?

You should be able to use CURLOPT_READFUNCTION and CURLOPT_POSTFIELDSIZE_LARGE
to do this.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-26