cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: How to prepare a setup for libcurl development

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Dec 2009 11:06:41 +0100 (CET)

On Mon, 7 Dec 2009, nitin.mittal_at_rsa.com 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
Received on 2009-12-07