$file =file_get_contents($url); preg_match("#<input.*?name=\"__viewstate\".*?value=\"(.*?)\".*?>.*?" ."<input.*?name=\"__eventvalidation\".*?value=\"(.*?)\".*?>#mis", $file, $arr_viewstate); $viewstate = urlencode($arr_viewstate[1]); $eventvalidation = urlencode($arr_viewstate[2]);
CURLOPT_POSTFIELDS => '__EVENTTARGET=' .urlencode('ctl00$ContentPlaceHolderBody$SearchPageNavigationTop$rptPager$ctl01') .'&__EVENTARGUMENT=' .urlencode('') .'&__VIEWSTATE=' .$viewstate .'&__EVENTVALIDATION=' .$eventvalidation .'&__LASTFOCUS=' .urlencode(''));
ctl00$ContentPlaceHolderBody$SearchPageNavigationTop$rptPager$ctl01
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)