(PECL pecl_http >= 0.12.0)
HttpRequest::setHeaders — Set headers
$headers
] )Set request header name/value pairs.
headers
an associative array as parameter containing header name/value pairs; if empty or omitted, all previously set headers will be unset
Returns TRUE
on success or FALSE
on failure.