Hello
I previously posted that I couldn't connect (as I didn't know how to
construct my header correctly to access my DataSift (
datasift.com)
stream). I now have that working and I get the initial response:
2012-01-22 13:20:21:984 SimpleHTTPClient[34478:f803]
socket:didWriteDataWithTag:
2012-01-22 13:20:22:035 SimpleHTTPClient[34478:f803]
socket:didReadData:withTag:
2012-01-22 13:20:22:035 SimpleHTTPClient[34478:f803] Full HTTP
Response:
HTTP/1.1 200 OK
2012-01-22 13:20:22:035 SimpleHTTPClient[34478:f803]
socket:didReadData:withTag:
2012-01-22 13:20:22:035 SimpleHTTPClient[34478:f803] Full HTTP
Response:
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
X-DataSift-ServedBy: ded2442-3670
X-DataSift-Auth: a-head
However I don't get any further updates. I'm clearly missing some
basic concepts here. I've googled, searched the groups and read the
docs many times but I'm now stuck. I've modified the SimpleHTTPClient
example as a starting point. The only thing I've changed in that
project is the host I'm pointing to and the header I'm sending (per
the DataSift HTTP streaming docs) If I connect to my DataSift service
through the browser I get a continuous stream of Twitter data (in
JSON). Do I need to modify the SimpleHTTPClient to get a continuous
stream/add a method to the delegate?
Many thanks,
Ben