HttpRequest::addCookies
HttpRequest::addPostFields
HttpRequest
PHP Manual

# HttpRequest::addHeaders

(PECL pecl_http >= 0.10.0)

HttpRequest::addHeaders — Add headers

### Descrição

public bool HttpRequest::addHeaders ( array `$headers` )

Add request header name/value pairs.

### Parâmetros

`headers`

  an associative array as parameter containing additional header name/value pairs

### Valor Retornado

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

HttpRequest::addCookies
HttpRequest::addPostFields
HttpRequest
PHP Manual