On Jan 17, 2010, at 6:10 , samarules wrote:
curl_easy_setopt(easyhandle, CURLOPT_POSTFIELDS, &st);
st is a std::string. CURLOPT_POSTFIELDS need a pointer to the data
itself. See:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPOSTFIELDS
Use:
curl_easy_setopt(easyhandle, CURL
Hi,
I am trying to send protocol buffer messages over HTTP using libcurl
in C++. I am POSTing in binary mode. It seems, upon posting data gets
corrupt.
Here is the code snippet:
---
std::string st;
campaignpool.SerializeToString(&st);
//POST using curl
struct curl_s