WurflCloud_HttpClient_AbstractHttpClient::addHttpRequestHeaderIfExists
Adds the HTTP Header specified by $source_name (if found) in the $http_request under $dest_name. Example: addRequestHeaderIfExists('HTTP_USER_AGENT', 'User-Agent');
Signature
public function addHttpRequestHeaderIfExists(array
$http_request,
string
$source_name,
string
$dest_name )
Parameters
$http_request
— array$source_name
— string$dest_name
— string
Returns
- boolean
- true if the header was found and added, otherwise false