cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLFORM_BUFFER vs CURLFORM_PTR

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 Aug 2006 13:37:51 +0200 (CEST)

On Wed, 30 Aug 2006, Mohun Biswas wrote:

> I'm a little confused about the differences between CURLFORM_BUFFER* and
> CURLFORM_PTR*. I'm currently using CURLFORM_PTRNAME, CURLFORM_PTRCONTENTS,
> and CURLFORM_CONTENTSLENGTH to make multipart forms and it seems to be
> working fine. What's the difference between that and
> CURLFORM_BUFFER/CURLFORM_BUFFERPTR/CURLFORM_BUFFERLENGTH?

The *BUFFER* ones are for making a CURLFORM_FILE part but instead of getting
the file from disk, providing the data in a buffer.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-08-30