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::setMaxRedirects()

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

Client::restart()

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

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::reload()

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

Client::isFollowingRedirects()

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

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::getServerParameter()

string getServerParameter(string $key, string $default = '') Gets single server parameter for specified key. Parameters string $key A key of the parameter to get string $default A default value when key is undefined Return Value string A value of the parameter