View Single Post
Old 11-20-2010, 08:09 AM   #5
miurahr
Junior Member
miurahr began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2010
Device: Kindle2(i)
Unhappy Debug infos

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>
Attached Files
File Type: txt response.txt (11.5 KB, 408 views)
File Type: txt nikkei_sub.recipe.txt (2.1 KB, 295 views)

Last edited by miurahr; 11-20-2010 at 08:17 PM. Reason: previous post may mislead understandings
miurahr is offline   Reply With Quote