.NET用 POST模拟百度登陆源代码谁有?
总体思路我知道,但是具体的真不知道怎么弄,有哪位高手能指点一二,做过这方面研究的可以指点迷津一下就好了。我尝试过
Webclient
httpWebResponse 和 httpWebrequest
但是最终都没办法成功登陆。
出来这么个html结果:
<!--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="http://www.baidu.com/"
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>
谁有现在能使用的源代码 小弟感激不尽啊
请发我邮箱。215511982@qq.com --------------------编程问答-------------------- 顶啊 没人知道吗
补充:.NET技术 , C#