Client::submit()

Crawler submit(Form $form, array $values = array()) Submits a form. Parameters Form $form A Form instance array $values An array of form field values Return Value Crawler

Client::setServerParameters()

setServerParameters(array $server) Sets server parameters. Parameters array $server An array of server parameters

Client::setServerParameter()

setServerParameter(string $key, string $value) Sets single server parameter. Parameters string $key A key of the parameter string $value A value of the parameter

Client::reload()

Crawler reload() Reloads the current browser. Return Value Crawler

Client::request()

Crawler request(string $method, string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, bool $changeHistory = true) Calls a URI. Parameters string $method The request method string $uri The URI to fetch array $parameters The Request parameters array $files The files array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) string $content The raw body data bool $changeHistory Whe

Client::restart()

restart() Restarts the client. It flushes history and all cookies.

Client::isFollowingRedirects()

bool isFollowingRedirects() Returns whether client automatically follows redirects or not. Return Value bool

Client::setMaxRedirects()

setMaxRedirects(int $maxRedirects) Sets the maximum number of requests that crawler can follow. Parameters int $maxRedirects

Client::insulate()

insulate(bool $insulated = true) Sets the insulated flag. Parameters bool $insulated Whether to insulate the requests or not Exceptions RuntimeException When Symfony Process Component is not installed

Client::getResponse()

object|null getResponse() Returns the current origin response instance. The origin response is the response instance that is returned by the code that handles requests. Return Value object|null A response instance