【发布时间】:2019-09-20 14:45:07
【问题描述】:
我有一个这样的 api 请求:
http://0.0.0.0:4000/sentence=SUITS/Test。
它在浏览器中出现错误:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
然后我对“SUITS/Test。”进行 URL 编码:
http://0.0.0.0:4000/sentence=SUITS%2FTest
这给出了同样的错误信息。
如果我从 URL 中删除“/”,它就可以正常工作。
为什么 URL 编码在这里不起作用?
这是带有flask_restful的python restful api。
【问题讨论】:
标签: rest flask-restful