"The requested resource does not support http method 'GET'" - 但我没有使用 C# 或 asp.net,我是提出请求的人

"The requested resource does not support http method 'GET'" - but I'm not using C# or asp.net, I'm the one making the request

我正在编写 Java 应用程序。当我尝试使用 OkHttp 向 API 发出请求时,没有返回任何内容。当我在浏览器中访问请求 URL 时,我得到了响应 {"Message":"The requested resource does not support http method 'GET'."}

如果您是服务器的托管者,我只能在网上寻求帮助。作为提出要求的我,有什么可以做的吗?还是我必须等到 API 人可以修复它?

你这个笨蛋,你还以为你请求的问题是浏览器的消息引起的呢!实际上,这是您的 Android 模拟器中的错误。您只需要冷启动模拟设备,它就已修复!