cURL / Mailing Lists / curl-library / Single Mail


CURLOPT_HTTPPOST documentation wrong?

From: <>
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.


List admin:
Received on 2011-03-15