HttpRequest::setContentType
HttpRequest::setHeaders
The HttpRequest
PHP Manual

# HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookies — Set cookies

### Descrição

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

Set custom cookies.

### Parâmetros

`cookies`

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

### Valor Retornado

Retorna `TRUE` em caso de sucesso ou `FALSE` em falhas.

HttpRequest::setContentType
HttpRequest::setHeaders
The HttpRequest
PHP Manual