cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_INFILESIZE vs CURLOPT_INFILESIZE_LARGE

From: ALp <alpforce_at_bezeqint.net>
Date: Fri, 07 May 2010 16:03:58 +0200

Thank you :)

Daniel Stenberg wrote:
> On Fri, 7 May 2010, ALp wrote:
>
>> My question is, what size does the data need to be for the
>> application to use CURLOPT_INFILESIZE_LARGE? When does
>> CURLOPT_INFILESIZE end and CURLOPT_INFILESIZE_LARGE begin? :) is
>> there a constant or a def' that declares this boundary?
>
> The simplest answer: always use CURLOPT_INFILESIZE_LARGE and pass in a
> curl_off_t type.
>
> If you really want to do it more complicated, then use
> CURLOPT_INFILESIZE as long as you can fit the size in a signed 'long'
> and then switch to CURLOPT_INFILESIZE_LARGE when it gets larger than
> so. But that's unnecessarily complicated. Really.
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.437 / Virus Database: 271.1.1/2858 - Release Date: 05/06/10 18:26:00
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-07