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),
                                headers={'content-type':'text/plain'},
                            )
    return resp, content

The web2py function return the correct value in content var,
but I cannot retrieve posted dictdata values in request.vars, that is
empty.
Can someone help me?
Thanks,
leone

Reply via email to