cURL / Mailing Lists / curl-users / Single Mail


Need some help

From: Hai Dao Le <>
Date: Sun, 10 Dec 2006 18:06:26 +0900



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




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,



Received on 2006-12-10