(PECL pecl_http >= 0.10.0)
HttpRequest::addHeaders — Add headers
$headers
)Add request header name/value pairs.
headers
an associative array as parameter containing additional header name/value pairs
成功时返回 TRUE
, 或者在失败时返回 FALSE
.