Hi,

I am trying to understand how to use the included WebClient to test a 
JSONRPC interface. One showstopper for me at the moment is that I see the 
following in WebClient.post:

                # time the POST request
                data = urllib.urlencode(data)
                t0 = time.time()
                self.response = opener.open(self.url,data)
                self.time = time.time()-t0

When doing JSONRPC accesses I do not want the data to be urlencoded. 
Actually, I will prepare the data with json.dump, and I want WebClient to 
POST it transparently (I guess this goes in the body of the POST request). 
Is this at all possible? Is there an example of WebClient usage 
for JSONRPC interfaces somewhere?

Thanks,
Daniel Gonzalez

-- 



Reply via email to