cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mallocs Internal Implementation Clarifications

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 6 Jul 2004 17:10:47 +0200 (CEST)

On Tue, 6 Jul 2004, Sriram Venkat wrote:

> If i want to transfer 4MB file to a remote machine.
>
> Will the Lib code do a Malloc of 4MB and then transfer the data.

Did you REALLY try reading the docs first?

libcurl will call your callback to get the data and you'll return it to
libcurl in chunks. libcurl will certainly not allocate the whole thing.
(Unless you're doing multipart formposts.)

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-06