curl-and-python
Data Stream Question
From: Jack Carver <atofftopic_at_gmail.com>
Date: Fri, 5 Feb 2010 12:58:39 -0500
Date: Fri, 5 Feb 2010 12:58:39 -0500
Hi,
I have a persistent http data feed, which keeps appending data to a single
page, but keeps it open infinitely with a server-side keep-alive signal. If
trying to use urllib, when I get to feed.read(), it hangs infinitely, and
just keeps buffering the data, because it's waiting for the connection to
terminate before it completes the command. Is it possible at all (using
curl) to somehow get chunks of data as they come in, and not wait for the
connection to terminate?
Thanks,
Jack
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2010-02-05