Re: [web2py] httplib2 request

2010-10-20 Thread Michele Comitini
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

[web2py] httplib2 request

2010-10-20 Thread 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" % url, 'POST', body=urlencode(dictdata),