0
0x10
Gość
Jak za pomocą curla wyciągnąć ze strony www np ilość osób online ??
static int writer(char *data, int s, int n, string *buffer)
{
buffer->append(data, s * n);
return s * n;
}
string source;
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writer);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &source);