cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl output

From: Jose (Runlevel) <rlevel_at_gmail.com>
Date: Mon, 4 Apr 2005 19:10:05 +0200

Hi,

I'm writting the next simple application, and I want do do a post to a
servlet and I don't want to see the html output, What can I do to hide
this output?

curl = curl_easy_init();
 if(curl) {
     curl_easy_setopt(curl, CURLOPT_URL,
"http://localhost:8084/WebApplication1/actualizarEnvio.jsp");
   sprintf(url,"opt=%d&id_problema=%d&id_usuario=%d",opt,id_problema,id_usuario);
   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, url);
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
}

Thanks
Received on 2005-04-04