Added method to tweak HTTP headers of request
This commit is contained in:
parent
9ac755d86e
commit
67410805ba
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue