Example code:
RequestHandlerA(tornado.web.RequestHandler):
def get/post(self):
...
redirect('/index?username=user0&password=user0')
...
RequestHandlerB(tornado.web.RequestHandler):
def get/post(self):
...
render('index.html')
...
RequestHandlerA
redirects to RequestHandlerB
which then renders the index.html
.
At this point, the browser's URL looks like this :
/index?username=user0&password=user0
I'd like to remove the username
and password
arguments from the URL. How can I do that?
The "redirect" is necessary. So, what can I do in RequestHandlerB
for this question?