I am trying to set up Curl connection for Gnip Streaming. My objective is to download all incoming data in text and then upload the same in the database. But the curl request is getting dropped after some time. Is there any method to set up the process for streaming data.
curl --compressed -v -u <login>:<password> "https://gnip-stream.twitter.com/stream/sample10/accounts/UpSwell/publishers/twitter/prod.json?partition=1" --connect-time 900 -o output.txt
After sometime I am getting "closing connection".