I'm trying to access the Streaming API with C, and am using the following code:
#include <stdio.h>
#include <curl/curl.h>
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/sample.json?delimited=length -uJEggers2:password");
res = curl_easy_perform(curl);
printf("results: %c", res);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
This prints nothing upon execution, what am I doing wrong? Thanks. EDIT: The Code works when I use google.com as the URL, but it just seems to be an issue with the Streaming API. Any Ideas?