The HttpRequest
PHP 手册

HttpRequest::setUrl

(PECL pecl_http >= 0.10.0)

HttpRequest::setUrlSet URL

说明

public bool HttpRequest::setUrl ( string $url )

Set the request URL.

参数

url

the request url

返回值

如果成功则返回 TRUE,失败则返回 FALSE


The HttpRequest
PHP 手册