Full url from tornado request python with hashes -
hello got tornado request.
http://localhost:8000/blah/blah#myparameter=value1
in method trying extract myparameter value. get_argument not see it. why whould it? nothing in headers
i willing regex out of string if could. need url in string
here solution, tip use form
hidden id
:
template:
<form action="/info"> <input type="hidden" value="your_value" name="id"> <input type="submit" value="value result"> </form>
and tornado code:
class info(basehandler): def get(self, id): id = self.get_argument("id") # rest of code
the url mapping:
(r"/info/*([a-za-z0-9]+)*", handlers.info)
Comments
Post a Comment