curl-library
curl_formadd() error
Date: Wed, 19 Jun 2002 09:32:23 -0700 (PDT)
Here is a little C code. My question is:
Why after I run curl_formadd(....) a obtain a CURLE_COULDNT_RESOLVE_PROXY error?
I didn't try to connect!!!!!!!
CURLcode res;
char buffer[]="This is a file content example i wish to send using memory";
CURL *curl=NULL;
struct HttpPost* post = NULL;
struct HttpPost* last = NULL;
curl=curl_easy_init();
res=curl_easy_setopt(curl,CURLOPT_URL,"some_url");
res=(CURLcode)curl_formadd(&post, &last,
CURLFORM_BUFFER, "data.txt",
CURLFORM_BUFFERPTR, buffer,
CURLFORM_BUFFERLENGTH, strlen(buffer),
CURLFORM_CONTENTTYPE, "text/html",
CURLFORM_END);
---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
----------------------------------------------------------------------------
Bringing you mounds of caffeinated joy
>>> http://thinkgeek.com/sf <<<
Received on 2002-06-19