curl-library
How can i get the answer from a post ?
Date: Sun, 27 Jul 2008 16:38:01 +0300
Howdy ,...
I wish to get the answer page after a post for example :
I cleared all error checks and declarations
curl_easy_setopt(m_curl, CURLOPT_URL, url);
m_res = curl_easy_setopt(m_curl, CURLOPT_NOPROGRESS, 1L);
m_res = curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION,write_to_buffer);
curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, &buffer);
curl_easy_setopt(m_curl, CURLOPT_POSTFIELDS, data);
curl_easy_perform(m_curl);
the function write_to_buffer appends all chars to string element (string
buffer).
data is a simple url post format (ex :
"parent_pid=&format=text&code2=I+don't+know+how+to+get+answers+using+libcurl&poster=Jabka+Atu&paste=Send&expiry=m&email="
and the url is "http://pastebin.com/pastebin.php"
How can i get the answer of this message? .
Received on 2008-07-27