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

# HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookies — Set cookies

### Descripción

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

Set custom cookies.

### Lista de parámetros

`cookies`

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

### Valores retornados

Devuelve `TRUE` si todo se llevó a cabo correctamente, `FALSE` en caso de fallo.

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