I wanna share whole script and essentials of responses.
I attached whole recipe and response log.
It seems the site replies auth cookie as JS script and it is set through JS.
Quote:
Code:
function redirect() {
if (isCookieEnabled() == false) {
var formdiv = document.getElementById('form-div');
formdiv.innerHTML = 'please enable Browsers cookie';
return;
}
var checkKey = 'redirectFlag=';
var checkValue = '1290300579870';
var cookieCount = document.cookie.length;
var cookieArray = new Array();
cookieArray = document.cookie.split('; ');
var found = false;
var getValue = '';
var i = 0;
while(cookieArray[i]) {
if (cookieArray[i].substr(0, checkKey.length) == checkKey) {
getValue = cookieArray[i].substr(checkKey.length, cookieArray[i].length);
if (getValue == checkValue) {
found = true;
}
break;
}
i++;
}
if (found == false) {
document.cookie = checkKey + checkValue + ';';
}
var redirectionForm = document.forms['proxy-redirection'];
if (redirectionForm.action != '') {
redirectionForm.submit();
}
}
</script>
<style type="text/css">
body {
color: #FFFFFF;
}
</style>
</head>
<body onload="redirect();">
<div id="form-div">
<form method="post" action="https://regist.nikkei.com/ds/etc/accounts/auth?url=http%3A%2F%2Fwww.nikkei.com%2F" id="proxy-redirection"><table>
<tbody>
<tr>
<td>
<input type="hidden" name="aa" value="2d33ccde71a2e4e82e85bceb02260addb5705595aecf1e6b" /></td>
</tr>
</tbody>
</table>
<input id="continueButton" type="submit" name="continueButton" value="Continue" style="display: none;;" />
</form>
</div>
|