我有以下问题。你知道吗
我在tomcat9上部署了REST服务,我可以通过浏览器发送请求。 例如
http://localhost:8080/my_app/ping
给我期望的“Hello world”字符串。你知道吗
现在,我尝试通过Python脚本发送相同的GET请求:
import requests
r = requests.get('http://localhost:8080/my_app/ping')
print(r.content)
接收
"HTTP Status 404 – Not Found" ... "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists".
我怎样才能解决这个问题? 谢谢
附加:相同的行为使用卷曲
目前没有回答
相关问题 更多 >
编程相关推荐