When I am trying to access the salesforce API behind a proxy, I am not able to do so. When there is no proxy everything works fine.
Is there a way to set up the proxy details in the PHP code with the proxy id, username and password to allow the communication between our application and the salesforce API. I have found a few postings on the Java on how to do this but not in PHP..
It depends on if you’re using a SOAP or REST API, but both the PHP SoapClient and cURL libraries support proxies.
For SoapClient, the documentation states:
For example, this is a simplified extract from some sample code connecting to Salesforce using SOAP:
For cURL, take a look at the curl_setopt documentation, which has several options for proxies. Here is a simplified extract from some sample code connecting to Salesforce using REST: