i writed these steps with curl but it doesn't work 🙁
(these steps work right when you using via explorer handly)
<?php
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/realms.aspx?__EVENTTARGET=DataGrid1:_ctl9:_ctl0");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
ob_start();
curl_exec ($curl);
ob_end_clean();
curl_close ($curl);
unset($curl);
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/user_sessions.aspx");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
ob_start();
curl_exec ($curl);
ob_end_clean();
curl_close ($curl);
unset($curl);
$curl = curl_init();
$curlPost = '__EVENTTARGET='.urlencode('btnOK').'&__VIEWSTATE='.urlencode('dDwtNjQ5NjgwNTI1Ozs+c4SsOmVzdHA4377ABboPdElmM/U=').'&txtUName=m5&startdate='.urlencode('84/07/01').'&enddate='.urlencode('86/06/31').'&btnOK=تاييد';
curl_setopt ($curl, CURLOPT_URL, "http://support.ngsnet.net/user_sessions.aspx");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curlPost);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$mswdata = curl_exec ($curl);
curl_close ($curl);
echo $mswdata;
?>