I have a 3rd Party Endpoint Url Which I Paste in browser Address bar I can see the XML Data.

But the same Endpoint URL , I invoke via Apex Class (Http Call) I will get a Error Message From the System saying I don't have the Permission to access the Data.

There is No Error in Apex Class.

I checked with 3rd Party Developers..they are saying they have blocked certain IP of Amazon's Server. That might cause the Issue..

What is the Solution..


1 Answer 1


At one point of time, I had a similar issue of HTTP/HTTPs while using within the Salesforce environment and it was painful at some point of time.

From my experience and what @erkan has mentioned, I can suggest to try this:

  1. White listing the IP address if a third party URL is a static one.
  2. Hard code the URL with https if its used anywhere and try.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .