JavaScript Editor Javascript debugger     Website design 

HttpRequest::setHeaders

Set headers ()
bool HttpRequest::setHeaders ( [array headers] )

Set request header name/value pairs.

Parameters

headers

an associative array as parameter containing header name/value pairs; if empty or omitted, all previously set headers will be unset

Return Values

Returns TRUE on success or FALSE on failure.