經過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

相關文章
相關標籤/搜索