[Twisted-web] Progress on client POST methods

Ross Burton ross at burtonini.com
Sun Jan 7 11:37:44 CST 2007


I'm writing a Flickr upload tool[1] and would like to be able to show
the progress of the image upload.  Images are uploaded via HTTP POST:

from twisted.web import client
return client.getPage("http://api.flickr.com/services/upload/",

where form is the encoded title/tags/image data.  Is there a way to get
progress information from twisted.web.client?  If I'm uploading 4M
images the upload takes some time to complete, so I'd like to be able to
have a progress bar.

Also, should I be using twisted.web2.client now, or is it still under


[1] The library is at http://burtonini.com/bzr/flickrpc/
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

More information about the Twisted-web mailing list