function soap_transport_http::setProxy in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \soap_transport_http::setProxy()
- 5 includes/nusoap.orig.php \soap_transport_http::setProxy()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \soap_transport_http::setProxy()
- 5.2 includes/nusoap.orig.php \soap_transport_http::setProxy()
* set proxy info here * *
Parameters
string $proxyhost: * @param string $proxyport * @param string $proxyusername * @param string $proxypassword * @access public
File
- includes/
nusoap.orig.php, line 2395
Class
- soap_transport_http
- transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CURL extension for HTTPS support
Code
function setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = '') {
$this->uri = $this->url;
$this->host = $proxyhost;
$this->port = $proxyport;
if ($proxyusername != '' && $proxypassword != '') {
$this->outgoing_headers['Proxy-Authorization'] = ' Basic ' . base64_encode($proxyusername . ':' . $proxypassword);
$this
->debug('set Proxy-Authorization: ' . $this->outgoing_headers['Proxy-Authorization']);
}
}