curl-library
handle the download result of libcurl
Date: Fri, 2 Nov 2007 00:23:11 +0100 (CET)
Hi everybody,
I try to use libcurl and used this exemple :
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL,
"http://www.yahoo.com/");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
It works perfectly. But I don't undestand why this program print the
result? I never told him to do it. I used to to it in perl and get the
entire page to a variable. How can I do in C? So how can I handle the
result? (for using a regex for exemple).
Thanks for your attention!
:)
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Received on 2007-11-02