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
pavan.elthepu1.392651269495206E12pavan.elthepu1.392651269495206E12 

System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 403 Forbidden"

Hi all,

When I'm trying to send a request using HttpRequest, getting following error:
System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 403 Forbidden"

I added my URL to while list. Added my webservice in remote site settings? Can anybody please let me know what I'm missing?

Thank you,
Pacan
 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Pavan,

The issue was due to some setup issue on the middle wear, security feature was enabled on middle wear where it was checking for certification in SFDC request, as the certificate was not included in the request it failed with the above error.
The issue got resolved when the middle wear disabled certificate feature.

Please refer the below link.
https://developer.salesforce.com/forums/?id=906F0000000BMTSIA4

I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar

pavan.elthepu1.392651269495206E12pavan.elthepu1.392651269495206E12
Could you please guide me how to include certificate in request?
Jacob HenleyJacob Henley

This may help you:
req.setClientCertificateName('localhost');

Where 'localhost' is the name of a certificate under the "Certificate and Key Management" menu.

This can be done in an Apex Class. Here is a link to the method info: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_httprequest.htm#apex_System_HttpRequest_methods