HttpRequest::setContentType
HttpRequest::setHeaders
HttpRequest
PHP Manual

# HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookies — Set cookies

### Opis

public bool HttpRequest::setCookies ([ array `$cookies` ] )

Set custom cookies.

### Parametry

`cookies`

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

### Zwracane wartości

Zwraca `TRUE` w przypadku powodzenia, `FALSE` w przypadku błędu.

HttpRequest::setContentType
HttpRequest::setHeaders
HttpRequest
PHP Manual