awano7
awano7

Reputation: 13

HTTP 403 Error while accessing web service

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.

Any idea why?

Upvotes: 1

Views: 31027

Answers (3)

RichardSchulz
RichardSchulz

Reputation: 1

I had the same issue where the browser could access an url and my simple java call got a 403 error. I got it working by adding http header information to the request. I copied what the browser send.

Upvotes: 0

Joe Mahoney
Joe Mahoney

Reputation: 903

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:

  • The remote host you are is being blocked by a firewall
  • You've reached the limit of calls to the web service and they are blocking any further connections
  • You are sending credentials for authentication but the account is banned/disabled
  • The user-agent or some other header in your request is causing the service to reject the connection. Perhaps a missing header?

Upvotes: 7

GustyWind
GustyWind

Reputation: 3036

The Web server thinks that the HTTP data stream sent by the client was correct, but access to the resource identified by the URL is forbidden for some reason.Check the firewall settings.This should help you :-)

Upvotes: 0

Related Questions