(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
成功时返回 TRUE
, 或者在失败时返回 FALSE
。