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, CURLOPT_POSTFIELDS, st.data());


Evan

--
Evan Jones
http://evanjones.ca/

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to