cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: pyCURL/Libcurl problem with large files

From: Joe Halpin <j.p.h_at_comcast.net>
Date: Mon, 22 Mar 2004 16:59:28 -0600

Daniel Stenberg wrote:
> On Mon, 22 Mar 2004, Jesse Noller wrote:
>
> (please don't reply to an existing thread when you want to post an entirely
> new thread using a new subject, it messes up threading in mail clients and
> the web archive - post a fresh new mail instead)
>
>>I am hoping that someone else working with pycurl catches this - I just
>>upgraded to 7.11.1 release (for both curl and pycurl) and I am trying to
>>perform file PUTs against a server with 2GB files.
>>
>>The problem I am having is that with the normal INFILESIZE setopt, the size
>>of the file I am feeding libcurl via pyCURL has to be converted to an INT -
>>files up to 1GB work fine with:
>
> CURLOPT_INFILESIZE in the libcurl level takes a 'long', which is equal to
> 'int' on 32bit systems.

Well, it may be, but it may not be. It depends on the compiler and the
system.

Joe
Received on 2004-03-22