HttpMessage
在线手册:中文  英文

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.


HttpMessage
在线手册:中文  英文
易百教程