访问Web服务时出现HTTP 403错误

访问Web服务时出现HTTP 403错误

问题描述:

我正在尝试从远程计算机访问Web服务.我设法从浏览器访问Web服务.但是,当我尝试从应用程序调用Web服务时,我正在获取HTTP 403.

Im trying to access a web service from a remote computer. I managed to access the web service from the browser. But Im getting HTTP 403 when I try to call the web service from the application.

知道为什么吗?

A

A 403 response indicates that the host or software you're connecting with isn't allowed to access the web service. Reasons for this might be:

  • 您的远程主机被防火墙阻止
  • 您已达到对Web服务的呼叫限制,并且它们阻止了任何其他连接
  • 您正在发送用于身份验证的凭据,但该帐户被禁止/禁用
  • 请求中的用户代理或其他标头导致服务拒绝连接.也许缺少标题?