On Mon, 7 Dec 2009, [email protected] wrote:

Daniel, do you have an example code illustrating the use of CURL_POST?

http://curl.haxx.se/libcurl/c/http-post.html perhaps?

        std::string strHttpContent = "";

                // Now specify the POST data
                curl_easy_setopt(mCurl, CURLOPT_POSTFIELDS,
strHttpContent);

Eeeek, you need to provide a plain char * to this option, not a C++ string object.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to