The HttpRequest
PHP Manual

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 Manual