libcurl get JSON string -
i'm sorry simple question i'm new using libcurl. have following code:
curl_easy_setopt(curl, curlopt_url, "http://mypage.com/index.php?datasourceid=1"); curl_easy_setopt(curl, curlopt_httpget, 1); res = curl_easy_perform(curl); everything works fine, when curl_easy_perform(curl) executed json string in console , want string in variable.
please can me ?
any suggestion appreciated.
you need ask libcurl write directly own memory buffer via curlopt_writedata option.
please refer getinmemory example precisely illustrates how that.
Comments
Post a Comment