One other thing you could try which would not require you alter curl would
be to see if you cen get yor server to send you the file using
Tranfer-encoding: chunked vs. setting the Content-Length. The current
version of curl can receive chunked xfers just fine and you will not have
any limit to the amount of data curl can download.
I looked at this issue a bit back and this is how I was able to resolve it.
I think it is a pretty pervasive task once you start changing the type and
there will be a definite ripple effect, so if this is a possibility for you
it will probably save you some effort.
Amit Mongia
<mongiaamit_at_yahoo.com> To: curl-library_at_lists.sourceforge.net
Sent by: cc:
curl-library-admin_at_lists.sour Subject: Re: Download file size
ceforge.net
12/11/2002 05:48 AM
Please respond to
curl-library
My server needs me to post certain other variables
besides the file name if i want to download a file.
The server does not accept request through GET method.
Can you please suggest where to make a fix in the code
to be able to download files larger than 4GB.
At the moment the download, almost everytime stops
after downloading 2 GB.
Regards,
Amti mongia
--- Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 11 Dec 2002, Amit Mongia wrote:
>
> > Thanx a lot fo the input. By INFILESIZE being a
> limit i meant that the
> > maximum value INFILESIZE can have, limits the size
> of the file that i can
> > upload through put method.
>
> Right, the value has a limit since we're using 32bit
> numbers. And that is
> what limits it.
>
> > My task was to try and download a 2 GB file from a
> server, without
> > chunking.
>
> So why use POST? Shouldn't you just GET it?
>
> > So i just wanted to confirm that there were no
> imits from libcurl's side in
> > doing that.
>
> I'm not aware of any such limits. I believe you can
> download at least 2GB and
> don't know of any problems downloading 4GB and it
> might just work to download
> even more...
>
> --
> Daniel Stenberg -- curl, cURL, Curl, CURL. Groks
> URLs.
>
>
>
-------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance
> Computing Channel
> http://hpc.devchannel.org/
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-11