title: libcurl problem with getting data from curl_easy_perform()
body: <p>This is probably a stupid question, but how do I actually <strong>get</strong> the site data returned by <code>curl_easy_perform()</code> into a variable that I can work with. When it executes, I just see it all flash by on the Terminal. I am using C, by the way. </p>
  
  <p>Any ideas? Thanks. </p>
  
  <p><strong>EDIT:</strong>
  This is the code I'm using (I'm accessing the Twitter Streaming API, am I even doing it correctly?) </p>
  
  <pre><code>int main(void)
  {
    CURL *curl;
    CURLcode res;
  
    curl = curl_easy_init();
    if(curl) {
      curl_easy_setopt(curl, CURLOPT_URL, "http://stream.twitter.com/1/statuses/filter.json?track=http");
  curl_easy_setopt(curl, CURLOPT_USERPWD, "JEggers2:password");
      res = curl_easy_perform(curl);
  
      /* always cleanup */ 
      curl_easy_cleanup(curl);
  
  
    }   
    return 0;
  }
  </code></pre>