function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SanthanaSanthana 

Proxy error while I am connecting to internal server from sandbox

I am trying to connect with one of our internal server for authentication from salesforce. I am running a code snippet from dev console .But I am getting the below proxy error .Kindly help me  as early as possible to overcome this issue.

Following is the error message
Unable to tunnel through proxy.Proxy returns"http/1.1 403 forbidden.

Below is the code that I am runjing in dev console
HttpRequest req = new HttpRequest();
HttpResponse res = new HttpResponse();
Http http = new Http();
req.setEndpoint('https://example.com/api/v1.0/auth/authenticate';
req.setHeader('Content-Type', 'application/json');
req.setHeader('cache-control','no-cache');
req.setMethod('POST');
req.setBody('{"username": "test@example.com","password": "test"}');
res = http.send(req);