我做的是百度登陆 
    POST 成功后得到的是这段代码
        <!--STATUS OK-->
<html><head><title>用户登录      </title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<META http-equiv='Pragma' content='no-cache'>
</head>
<body>
            
<script>
var url="http://hi.baidu.com/sys/checkuser/oxiangsunyanzi/space"
url=url.replace(/^\.\//gi,"http://passport.baidu.com/");
location.href=url;
</script>

</body>
</html>        然后我把  http://hi.baidu.com/sys/checkuser/oxiangsunyanzi/space 在IE上直接敲上也不行 说我没有登陆 
        因为Cookies 里边的数据没在IE 上请求高手 能让我用POST 提交后 得到 登陆后  http://hi.baidu.com/sys/checkuser/oxiangsunyanzi/space  这个页的源代码  万分感谢 !!! 而不是上边那些代码     分不是很多 谢谢帮忙 

解决方案 »

  1.   

    汗!我的是这样的!<!--STATUS OK-->
    <html><head><title>用户登录      </title>
    <meta http-equiv=content-type content="text/html; charset=gb2312">
    <META http-equiv='Pragma' content='no-cache'>
    </head>
    <body>

    <script>
    var passCookie={
    get:function(key){
                            var a,reg = new RegExp("(^| )" + key + "=([^;]*)(;|"+"\x24"+")");
                            if(a = document.cookie.match(reg))
                                return unescape(a[2]);
                        }
    };

    if(passCookie.get("J_MY")=='0'){
    var url="./"
    url=url.replace(/^\.\//gi,"http://passport.baidu.com/");
    location.href=url;
    }else{
    // location.href="http://my.baidu.com/index.html?my=1&tn=baidu_myps_pg";
    location.href="http://www.baidu.com";
    }
    </script>

    </body>
    </html>
      

  2.   

    httpwatch来监视登陆地址提交的参数
    设置cookie
      

  3.   

    <script>
    var passCookie={
    get:function(key){
      var a,reg = new RegExp("(^| )" + key + "=([^;]*)(;|"+"\x24"+")");
      if(a = document.cookie.match(reg))
      return unescape(a[2]);
      }
    };if(passCookie.get("J_MY")=='0'){
    var url="./"
    url=url.replace(/^\.\//gi,"http://passport.baidu.com/");
    location.href=url;
    }else{
    // location.href="http://my.baidu.com/index.html?my=1&tn=baidu_myps_pg";
    location.href="http://www.baidu.com";
    }
    </script>