通过FLASK的REQUEST对象获取URL

测试了一下:通过发送 GET 到 http://127.0.0.1:5000/test/a?x=1,

request.path: /test/a
request.host: 127.0.0.1:5000
request.host_url: http://127.0.0.1:5000/
request.full_path: /test/a?x=1
request.script_root: 
request.url: http://127.0.0.1:5000/test/a?x=1
request.base_url: http://127.0.0.1:5000/test/a
request.url_root: http://127.0.0.1:5000/

 

posted @ 2019-05-04 18:36  青红*皂了个白  阅读(893)  评论(0编辑  收藏  举报