Zend_Http_Client::setHeaders
Set one or more request headers
This function can be used in several ways to set the client's request headers: 1. By providing two parameters: $name as the header to set (eg. 'Host') and $value as it's value (eg. 'www.example.com'). 2. By providing a single header string as the only parameter eg. 'Host: www.example.com' 3. By providing an array of headers as the first parameter eg. array('host' => 'www.example.com', 'x-foo: bar'). In This case the function will call itself recursively for each array item.
Signature
public function setHeaders(string|array
$name,
[mixed
$value = NULL] )
Parameters
$name
— object- Header name, full header string ('Header: value')
or an array of headers $value
— mixed- Header value or null
Returns
- Zend_Http_Client