python - Why does the browser console response return empty after csdn login?
高洛峰
高洛峰 2017-07-05 10:34:31
0
1
909

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?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
为情所困

/a/11...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template