Re: question about posting data using MultipartPostHandler

2013-08-15 Thread Chris Angelico
On Thu, Aug 15, 2013 at 7:12 PM, cerr wrote: > multipart = ({"data":data}, {"fname":fname}, {"f":f}) > > but I get an error saying "'tuple' object has no attribute 'items'"... how do > I do this correctly? You're no longer providing a dictionary, but a tuple of dictionaries. What you wan

question about posting data using MultipartPostHandler

2013-08-15 Thread cerr
Hi, I want to use http post to upload data to a webserver but I want to pass multiple arguments within the post i.e. I know that you can load one item (data)in there like this: data = {"data":open(filename,"rb")} response = opener.open(url, data, ti