src/Guzzle/Http/RedirectPlugin.php
protected function sendRedirectRequest(RequestInterface $original, RequestInterface $request, Response $response)
    {
        // Validate and create a redirect request based on the original request and current response
        if ($redirectRequest = $this->prepareRedirection($original, $request, $response)) {
            try {
                $redirectRequest->send();
            } catch (BadResponseException $e) {
                $e->getResponse();
                if (!$e->getResponse()) {
                    throw $e;
                }
            }
        }
    }
protected function sendRedirectRequest(RequestInterface $original, RequestInterface $request, Response $response)
    {
        // Validate and create a redirect request based on the original request and current response
        if ($redirectRequest = $this->prepareRedirection($original, $request, $response)) {
            try {
                $redirectRequest->send();
            } catch (BadResponseException $e) {
                $e->getResponse();
                if (!$e->getResponse()) {
                    throw $e;
                }
            }
        }
    }
protected function sendRedirectRequest ( RequestInterface $ original , RequestInterface $ request , Response $ response ) { // Validate and create a redirect request based on the original request and current response if ( $ redirectRequest = $ this -> prepareRedirection ( $ original , $ request , $ response ) ) { try { $ redirectRequest -> send ( ) ; } catch ( BadResponseException $ e ) { $ e -> getResponse ( ) ; if ( ! $ e -> getResponse ( ) ) { throw $ e ; } } } }
Send a redirect request and handle any errors

@param RequestInterface $original The originating request
@param RequestInterface $request  The current request being redirected
@param Response         $response The response of the current request

@throws BadResponseException|\Exception
Send a redirect request and handle any errors