Streaming api get a lot of bytes of result but doesn't print it




Hello Twitter,
I have this problem: I use the “” library that seems work fine with REST Api call but not with streaming api.

I use the following script to filter track with streming api:

$settings = array(
‘oauth_access_token’ => “2900439863-etc.”,
‘oauth_access_token_secret’ => “zXsZ5fOxC4KIjUGmALcGh-etc.”,
‘consumer_key’ => “4jm8dRhGY9Y-etc.”,
‘consumer_secret’ => “3G9saodmaaKZsLkdIovDuFY.etc.”

$url = “”;
$getfield = “?track=pizza”;
$requestMethod = “GET”;
$twitter = new TwitterAPIExchange($settings);
$string = json_decode($twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest(),$assoc = TRUE);

print_r ($string);

I call the php script with a command prompt on a windows 2008 server, but the response is: “Uncaught exception ‘Exception’ with message ’ Operation timed out after 30000 millisecond with 321225 bytes received …”

So the streaming api call works, because I obtain a lot of bytes in answer, but I can’t print nor use them. I only see the error message and nothing else, even if in the script I have print_r ($string).

Could you please help me with this issue?

Thanks a lot!