#4 Proxy Support

open
nobody
None
5
2007-05-24
2007-05-24
No

Some hosts require all requests to go through a proxy (e.g. GoDaddy).

This is very easy to support. The config.inc.php file would need to be modified to add proxy host and proxy port settings.

Then, the registerSoapClient could add those settings into the options array when initializing the SoapClient.

My modified version for GoDaddy currently looks like:

public static function registerSoapClient()
{
$clientOptions = array("soap_version" => SOAP_1_1, "exceptions" => true, "trace" => true, "connection_timeout " => API_CONNECTION_TIMEOUT);

$clientOptions['proxy_host'] = 'proxy.shr.secureserver.net';
$clientOptions['proxy_port'] = 3128;

PayPalBase::setSoapClient(new SoapClient(API_WSDL, $clientOptions));
}

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks