public function EntityEnclosingRequestInterface::configureRedirects

Configure how redirects are handled for the request

Parameters

bool $strict Set to true to follow strict RFC compliance when redirecting POST requests. Most: browsers with follow a 301-302 redirect for a POST request with a GET request. This is the default behavior of Guzzle. Enable strict redirects to redirect these responses with a POST rather than a GET request.

int $maxRedirects Specify the maximum number of allowed redirects. Set to 0 to disable redirects.:

Return value

self

1 method overrides EntityEnclosingRequestInterface::configureRedirects()
EntityEnclosingRequest::configureRedirects in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php
Configure how redirects are handled for the request

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequestInterface.php, line 138

Class

EntityEnclosingRequestInterface
HTTP request that sends an entity-body in the request message (POST, PUT)

Namespace

Guzzle\Http\Message

Code

public function configureRedirects($strict = false, $maxRedirects = 5);