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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -