You need to sign in to do that
Don't have an account?
Armando jacobo
Can we use IP Address instead of domains in an Apex class?
When I consume a web service in a site with SSL can I use the IP of the service instead of domain name?
I reference specifically the metod req.setEndpoint('https://x.x.x.x/digital/api/resource').
I reference specifically the metod req.setEndpoint('https://x.x.x.x/digital/api/resource').
pbattisson
I do not believe so - my understanding is that the method requires a URL specifically and not an IP address (which can host many URLs. Simple answer is to try it and let us know if it works!