try the following
headers = {'Content-type': 'application/x-www-form-urlencoded'}
2010/10/20 leone :
> Hi,
> I use httplib2 to query an url of the running roket server in web2py.
> This is my simple code:
>
> def POST(url, dictdata):
> h = httplib2.Http()
> resp, content = h.request("%s" % u
Hi,
I use httplib2 to query an url of the running roket server in web2py.
This is my simple code:
def POST(url, dictdata):
h = httplib2.Http()
resp, content = h.request("%s" % url,
'POST',
body=urlencode(dictdata),
2 matches
Mail list logo