经过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/url

相关文章
相关标签/搜索