Problem with the streaming api?


Since this night I am unable to connect to the streaming API, I dont see any update to the api or whatever so whats going on?

PHP Fatal error: Uncaught exception ‘Exception’ with message 'Twitter did not send a chunking header. Is this really HTTP/1.1? Here are headers:
connection: close
Content-Type: application/json
transfer-encoding: chunked
date: Wed, 23 Apr 2014 06:38:23 UTC
x-connection-hash: 4d8153f43620d505ab21b834306dd2ff


See and


Hmmm traced it down to a change in httpcode from 200 to ???


Hi !!

I have a same issue from 13 hours ago (approx.)
Do you discovery the fix?

Many Thanks,




if(strtolower($hLine)==‘transfer-encoding: chunked’)$isChunking=true;

should fix it for now :smiley:


I had the same issue, I perform the change you mentioned and it is working again for me.
Was this “update/change” warn by twitter some how??? I can not understand they make changes without anticipating it to the users.
Thank you very much for your help!


This is correct. According to RFC it is case-insensitive I think.