The HttpRequest
PHP 手册

HttpRequest::enableCookies

(PECL pecl_http >= 1.0.0)

HttpRequest::enableCookiesEnable cookies

说明

public bool HttpRequest::enableCookies ( void )

Enable automatic sending of received cookies.

Note: Note that custom set cookies will be sent anyway.

返回值

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


The HttpRequest
PHP 手册