2014年5月12日 星期一

flask url path param

request.path             /page.html
request.script_root      /myapplication
request.base_url         http://www.example.com/myapplication/page.html
request.url              http://www.example.com/myapplication/page.html?x=y
request.url_root         http://www.example.com/myapplication/
 
request.referrer
 
request.args             GET params
 
 
 
 
 
References :
python - Flask request fields to get url path - Stack Overflow

沒有留言:

張貼留言