setClient( new GuzzleClient([ 'allow_redirects' => false, 'cookies' => true, 'curl' => [ CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, ] ]) ); $client->followRedirects($followRedirects); $client->getCookieJar()->clear(); return $client; } }