Hey try to fill the login form of this page https://nomade.pericles.fr to acces to this one https://nomade.pericles.fr/#/accueil with this code but no work I stay stuck on login page with 404 error if someone have idea ?
<?php
$url = 'https://nomade.pericles.fr/#/accueil';
$timeout = 10;
$agent = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36";
$cookie_file_path = "/tmp/cookies.txt";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
if (preg_match('`^https://`i', $url))
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
}
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Utilisation de la méthode POST
curl_setopt($ch, CURLOPT_POST, true);
// Définition des champs et valeurs à envoyer
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'user_id' => '********',
'user_pwd' => '********'
));
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
$page_content = curl_exec($ch);
curl_close($ch);
echo $page_content;
?>