cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_HTTPPOST documentation wrong?

From: <richardcavell_at_mail.com>
Date: Tue, 15 Mar 2011 06:39:22 -0400

Hi. I'm setting up a post like this :

curl_easy_setopt ( curlhandle , CURLOPT_HTTPPOST , formptr ) ;
curl_easy_perform ( curlhandle ) ;
curl_formfree ( formptr ) ;

Now, the manual entry for CURLOPT_HTTPPOST says that the form data
should persist until the handle is released. Is this a mistake? It
seems logical to me that the data can be got rid of after the POST is
performed. I am reusing the one handle to do all my HTTP functions.
My project ( a Wikipedia bot ) can run for days re-using the same curl
handle but the form data is always destroyed right after I get the
server's reply.

Richard

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-15