views:

161

answers:

1

Hi, I tried urllib{2}, pycurl and I'm looking at twisted's new http client. But:

  • I found urllib2 difficult to perform a file upload
  • pycurl multi looks right but unpythonic
  • twisted's http client does not support persistent connection (didn't check the file upload capability)

Is there any other alternative?

+1  A: 

PiCloud's library uses urllib2_file which easily does upload via multipart data. I forget where we got the module (we later modified it). the urllib2_file is covered under a BSD license.

UsAaR33