session_start();
$postfields = array();
$postfields["Login_new1:TextBox1"] = "demo";
$postfields["Login_new1:TextBox2"] = "prof";
$postfields["Login_new1:ButtonValider:TextBox2"] = "Se connecter";
//$postfields["_VIEWSTAT"] = "dDwtMTk4MDg0MjMzOTs7PuexXRdapeLp+co7aRmv9iz1jS37";
$postfields["action"] = "javascript:Page_ClientValidate();";
$url = 'https://www.viescolaire.net/accueil_0.aspx';
$useragent = "Mozilla/5.0";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
curl_close($ch);
echo $result;