I have an endpoint which is working by disabling SSL certificate verification in Postman. Also I add a CA certificate and client certificate details. Through Postman I am able to get a response.
But while using apex to make a callout I am getting an exception:
System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"
The code that I am using:
HttpRequest req = new HttpRequest(); req.setEndpoint('https://fb3d2fa7-88ba-4190-a6c1-1234545.io'); req.setMethod('POST'); req.setHeader('Content-Type', 'application/json'); req.setHeader('Accept', 'application/json;'); req.setClientCertificateName('Name_Certificate');
I wanted to know are there any additional parameters I need to set here to get a response from apex callout.