title: libcurl get JSON string
body: <p>I'm sorry for my simple question but I'm new using libcurl.
      I have the following  code:</p>
  
  <pre><code>    curl_easy_setopt(curl, CURLOPT_URL, "http://mypage.com/index.php?DataSourceId=1");
  
      curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
  
      res = curl_easy_perform(curl);
  </code></pre>
  
  <p>Everything works fine, so when curl_easy_perform(curl) is executed I get the JSON
  string in the console and I want to get this string in a variable.</p>
  
  <p>Please anyone can help me ?</p>
  
  <p>Any suggestion would be appreciated.</p>