I am trying to access the Streaming API using C and use 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);
curl_easy_cleanup(curl);
}
return 0;
}
It does not display anything at runtime, what am I doing wrong? Thank you
EDIT: The code works when I use google.com as the URL, but this is just a problem with the Streaming API. Any ideas?
user179169
source
share