cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download file size

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Dec 2002 10:37:20 +0100 (MET)

On Wed, 11 Dec 2002, Amit Mongia wrote:

> I am tryng to download files using HTTP POST method. Is their any File size
> limit for that in libcurl like for INFILESIZE in the PUT method?

INFILESIZE is not a limit, it is the true and actual size of the file about
to get sent to the server. INFILESIZE is not used for POST.

If you use POSTFIELDS to do the POST then you don't need to worry about the
size unless the data is binary. Then you set the size of the binary chunk you
want to post with POSTFIELDSIZE.

If you want to provide the POST data using a callback instead of POSTFIELDS,
then you need to set the size with POSTFIELDSIZE, yes.

The next libcurl release will have full and working chunked transfer-encoding
support and thus you don't have to provide the size then anymore (not even
for PUT)...

-- 
 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/
Received on 2002-12-11