The HttpMessage class
PHP 手册

HttpMessage::setRequestUrl

(PECL pecl_http >= 0.21.0)

HttpMessage::setRequestUrlSet request URL

说明

public bool HttpMessage::setRequestUrl ( string $url )

Set the Request URL of the HTTP Message.

参数

url

the request URL

返回值

Returns TRUE on success, or FALSE if the message is not of type HttpMessage::TYPE_REQUEST or supplied URL was empty.


The HttpMessage class
PHP 手册