httplib and buffered data
Don Dwiggins
dwig at advancedmp.net
Fri Feb 23 19:33:31 EST 2001
dsavitsk writes:
> i am capturing the data being returned from a script running on a web
> server. The script takes several minutes to run, and trickles back data a
> little at a time.
> Using httplib (or anything else) is there a way to capture the data line by
> line instead of as a lump sum with getfile()? i would like to alert the user
> as to the % of the data (a known quantity) that has been processed.
You could use asyncore/asynchat, if you're willing to wrap your mind around
that style of operation. The library documentation for asyncore shows a
little http client as an example. Better documentation for both is in the
Medusa pages on www.nightmare.com.
Happy hunting,
--
Don Dwiggins "Solvitur Ambulando"
Advanced MP Technology
dwig at advancedmp.net
More information about the Python-list
mailing list