curl-library
RE: How to prepare a setup for libcurl development
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Dec 2009 14:46:01 +0100 (CET)
Date: Mon, 7 Dec 2009 14:46:01 +0100 (CET)
On Mon, 7 Dec 2009, nitin.mittal_at_rsa.com wrote:
> Even that doesn't work for me...
Sorry, your top-posting (which shouldn't be used on this list) makes it
totally impossible to figure out what that is referring to.
What doesn't work?
> Also "std::string strHttpContent" contains some variables whose values are
> populated at run time, so I can't provide a plain char* instead I first
> populate strHttpContent & then feed strHttpContent .c_str() to
> CURLOPT_POSTFIELDS.
You MUST provide a plain char *. You cannot selectively provide something
else.
You can of course use .c_str() or whatever means you think is necessary to
get that char * from your c++ object/class.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-12-07