cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Large Post data.... buffering?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 5 Aug 2004 19:31:48 +0200 (CEST)

On Thu, 5 Aug 2004 apinstein_at_mac.com wrote:

> 1) It seems that even though curl can read the post data from a file, that
> it is not buffered but rather loaded entirely into memory and then sent.

That's true.

> 2) I cannot see the way via libcurl to provide a file path to the postdata
> to use. I think that this is the cause for #1 above, that the @file
> construct is handled by the curl app itself.

No, the reason for #1 is just that I once made it work that way and I've never
changed it.

You can make a POST use the read callback, and then you'd provide the data to
libcurl from the file when it wants it.

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