def test3(): url2 = 'http://127.0.0.1:8001/show' r2 = requests.get(url2) print r2.headers, '\n', r2.content url3 = 'http://127.0.0.1:8001/calc?operator=plus&operand1=12&operand2=23' r3 = requests.get(url3) print r3.headers, '\n', print jsonutils.loads(r3.content)
def _get_body(self, req): body = jsonutils.loads(req.GET.get('body')) return body