Added method to tweak HTTP headers of request

This commit is contained in:
Rémi Marseille 2014-04-22 22:29:11 +02:00
parent 9ac755d86e
commit 67410805ba
1 changed files with 12 additions and 0 deletions

View File

@ -173,6 +173,8 @@ class SoapClient extends \SoapClient
$headers = array();
}
$this->filterRequestHeaders($soapRequest, $headers);
// execute HTTP request with cURL
$responseSuccessfull = $this->curl->exec(
$location,
@ -253,6 +255,16 @@ class SoapClient extends \SoapClient
return $soapResponse;
}
/**
* Filters HTTP headers which will be sent
*
* @param SoapRequest $soapRequest SOAP request object
* @param array $headers An array of HTTP headers
*/
protected function filterRequestHeaders(SoapRequest $soapRequest, array &$headers)
{
}
/**
* Get last request HTTP headers.
*