Client

Client

class Client

Client simulates a browser.

To make the actual request, you need to implement the doRequest() method.

If you want to be able to run requests in their own process (insulated flag), you need to also implement the getScript() method.

Methods

__construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)

Constructor.

followRedirects(bool $followRedirect = true)

Sets whether to automatically follow redirects or not.

bool 登录查看完整内容