Home  >  Q&A  >  body text

python - Why does the browser console response return empty after csdn login?

Login to csdn
http://blog.csdn.net/?ref=too...

I want to check the return value, but the result is empty.

So I used python to simulate logging in and found that it was a piece of js

<script src="/content/loginbox/loginapi.js" ></script>
<script>

function redirect_back(){
    var redirect = "http://my.csdn.net/my/mycsdn"; 
    data.userName = data.userName;
    data.encryptUserInfo = userInfo;
    
    csdn.login_param.call = function (){
        location.href = redirect;
    }
    var _data = {};
    _data.status = true;
    _data.data = data;
    
    var oauth = "";
    if(oauth == "true"){
        csdn.login_back(_data);    
    }else{
        csdn.login_data = data;
        csdn.login_end();
    };
}    

</script>
<body onload="redirect_back();"></body>

Why can’t the browser see it?

高洛峰高洛峰2686 days ago897

reply all(1)I'll reply

  • 为情所困

    为情所困2017-07-05 10:36:31

    /a/11...

    reply
    0
  • Cancelreply