通过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/
原文地址:https://www.cnblogs.com/wen-kang/p/10809321.html