i have problem with login to Rompage Server , if i login my self and then refresh my code , the code will work fine , but after logout and refresh again , my code doesn't work. i think my problem is with cookie or something like that
Before Login : Login Form
After Login : request OK
and my code :
$snrHandler = curl_init('azin:775533@10.150.25.3/rpdslperfdetail_curr.html?2,3');
curl_setopt ($snrHandler, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($snrHandler, CURLOPT_COOKIESESSION, 1);
curl_setopt($snrHandler, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($snrHandler, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($snrHandler, CURLOPT_ENCODING, 1);
$snrHtml = curl_exec($snrHandler);