cURL / Mailing Lists / curl-library / Single Mail


Re: Mallocs Internal Implementation Clarifications

From: Daniel Stenberg <>
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 -- --
       Dedicated custom curl help for hire:
Received on 2004-07-06