downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpRequest::setMethod> <HttpRequest::setCookies
[edit] Last updated: Fri, 18 Sep 2009

view this page in

HttpRequest::setHeaders

(PECL pecl_http >= 0.12.0)

HttpRequest::setHeadersSet headers

Описание

public bool HttpRequest::setHeaders ([ array $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 при неуспех.



add a note add a note User Contributed Notes HttpRequest::setHeaders
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites