|
楼主 |
发表于 2013-2-21 10:25:14
|
显示全部楼层
[code=csharp] private void button1_Click(object sender, EventArgs e)
{
item = new HttpItem()
{
URL = "http://check.ptlogin2.qq.com/check?uin=1776912725&appid=2001601&r=0.2845342426637454",// 1776912725我的QQ号,登陆不需要验证码;
};
HttpResult Result = per.GetHtml(item);
string cookie = Result.Cookie;
string returntext = Result.Html;
Debug.Print(returntext);
//返回的cookie:confirmuin=0; PATH=/; DOMAIN=ptlogin2.qq.com;,ptvfsession=8e6a5f9db9e5f543f720b4b482d45ef6649f6b28f3562dfa524d3e9f22423806eb551f0d9c31942bb60d265aa37e26be; PATH=/; DOMAIN=ptlogin2.qq.com;,ptisp=cnc; PATH=/; DOMAIN=qq.com;
//返回的文本字符:ptui_checkvc('0','!fyf','\x00\x00\x00\x00\x69\xe9\x89\x55');
//然后把这个cookie和中间的验证码(!fyf)传递给http://ptlogin2.qq.com/login?u=1776912725&p="+密码加密(MD5)+"&verifycode=“+验证码+”&aid=2001601&u1=http%3A%2F%2Faq.qq.com%2Fcn2%2Findex&h=1&ptredirect=1&ptlang=2052&from_ui=1&dumy=&fp=loginerroralert&action=4-18-24266&mibao_css=&t=1&g=1
//返回的是网路异常,其实就是cookie传递失败,
}[/code] |
|