cURL / Mailing Lists / curl-users / Single Mail

curl-users

Need some help

From: Hai Dao Le <daolehai_at_nm.gist.ac.kr>
Date: Sun, 10 Dec 2006 18:06:26 +0900

Hi,

 

I am using the following simple example of curl

 

void get_page ()

{

CURL *curl;

    CURLcode res;

 

    curl = curl_easy_init();

    if(curl) {

      curl_easy_setopt(curl, CURLOPT_URL, "my_webpage");

      res = curl_easy_perform(curl);

  

      /* always cleanup */

      curl_easy_cleanup(curl);

    }

}

It's running well and I can see the content of my_webpage. My target now
is to convert and return this content into a vector of strings (each
line is a string) for later use. However, I am a beginner and the
structure of CURL data is quite complicated to me. Is there anybody can
help me?

 

Your help is highly appreciated,

 

Hai

 
Received on 2006-12-10