The HttpRequest
PHP Manual

HttpRequest::setMethod

(PECL pecl_http:0.10.0-1.5.5)

HttpRequest::setMethodSet method

Descrição

public bool HttpRequest::setMethod ( int $request_method )

Set the request method.

Parâmetros

request_method

the request method to use

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em falhas.


The HttpRequest
PHP Manual