The HttpRequest
PHP Manual

HttpRequest::setMethod

(PECL pecl_http >= 0.10.0)

HttpRequest::setMethodSet method

Описание

public bool HttpRequest::setMethod ( int $request_method )

Set the request method.

Параметри

request_method

the request method to use

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.


The HttpRequest
PHP Manual