Код: Выделить всё
std::string response_string;
curl_easy_setopt(curl, CURLOPT_URL, "http://some url");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, getAnswerFunction);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response_string);
Подробнее здесь: https://stackoverflow.com/questions/795 ... bcurl-work
Мобильная версия