PHP 5.4.33 Released

HttpRequest::addHeaders

(PECL pecl_http >= 0.10.0)

HttpRequest::addHeadersAdd headers

Description

public bool HttpRequest::addHeaders ( array $headers )

Add request header name/value pairs.

Parameters

headers

an associative array as parameter containing additional header name/value pairs

Return Values

Returns TRUE on success or FALSE on failure.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top