FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

Infinite redirect when using Guzzle like in the documentation #305

Open scaule opened 7 years ago

scaule commented 7 years ago

When i use Guzzle like in the documentation on url "https://espace-client-connexion.enedis.fr/auth/UI/Login" I'm stuck on an infinite redirect.

My code :

 $goutteClient = new Client();

$guzzleClient = new GuzzleClient();
$goutteClient->setClient($guzzleClient);
$crawler = $goutteClient->request('GET', 'https://espace-client-connexion.enedis.fr/auth/UI/Login?realm=particuliers');