cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_POST is not returning anything

From: Corcoran, Jason <jcorcoran_at_informatica.com>
Date: Fri, 11 Dec 2009 03:29:31 -0800

On Dec 11, 2009, at 3:17 AM, "nitin.mittal_at_rsa.com" <nitin.mittal_at_rsa.com
> wrote:

> rl_easy_setopt(mCurl, CURLOPT_POSTFIELDSIZE, sizeof(strHttpContent);

You need to change the above to

rl_easy_setopt(mCurl, CURLOPT_POSTFIELDSIZE, strHttpContent.length());

You are mixing c++ with c stuff.

Thanks
Jason
http://www.informatica.com/9

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-11