curl-library
Re: Posting big files with libcurl
From: Nimrod A. Abing <nimrod.abing_at_gmail.com>
Date: Wed, 29 Nov 2006 10:29:19 +0800
Date: Wed, 29 Nov 2006 10:29:19 +0800
On 11/29/06, Lepidosteus <lepidosteus_at_gmail.com> wrote:
> Hello,
> I need to POST big files through http requests. Due to their size, I
> can't have my software to create the request into memory and then
> sending it
>
> Reading this message:
> http://curl.haxx.se/mail/lib-2004-04/0248.html
>
> It seems like back in 2004 libcurl couldn't do what i need, and I just
> wanted to know if tehre was any improvement in that area ? (either by
> creating a temporary file on disk, or even better by reading the file
> to include only when needed inside of copying it into memory)
See the CURLOPT_HTTPPOST option to curl_easy_setopt() and the
documentation for curl_formadd() pay special attention to
CURLFORM_FILE option.
HTH.
-- _nimrod_a_abing_ [?] http://abing.gotdns.comReceived on 2006-11-29