cURL / Mailing Lists / curl-library / Single Mail


handle the download result of libcurl

From: <>
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,
                res = curl_easy_perform(curl);

                /* always cleanup */
        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