curl-library
CURLFORM_BUFFER
Date: Sat, 22 Jun 2002 01:35:31 +0200
Hi,
In the man page for the new options to curl_formadd there
is an example like:
/* Add a buffer to upload */
curl_formadd(&post, &last,
CURLFORM_BUFFER, "data",
CURLFORM_BUFFERPTR, record,
CURLFORM_BUFFERLENGTH, record_length,
CURLFORM_END);
But when I try something like that I get an error saying
that it is incomplete, shouldn't it be like:
curl_formadd(&post, &last,
CURLFORM_COPYNAME, "name",
CURLFORM_BUFFER, "data",
CURLFORM_BUFFERPTR, record,
CURLFORM_BUFFERLENGTH, record_length,
CURLFORM_END);
By the way, would it be possible to use these options through
CURLFORM_ARRAY?
Andres
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-22