|
- item.URL = "https://passport.baidu.com/v2/api/?login";
- item.Method = "POST";
- item.Postdata = "ppui_logintime=235281&charset=utf-8&codestring=&token=871f97a97cd6ec29cb62761d38d75343&isPhone=false&index=0&u=&safeflg=0&staticpage=http%3A%2F%2Fwww.baidu.com%2Fcache%2Fuser%2Fhtml%2Fjump.html&loginType=1&tpl=mn&callback=parent.bdPass.api.login._postCallback&username=XXXXXX&password=YYYYYY&verifycode=&mem_pass=on";
- item.Referer = "http://www.baidu.com/cache/user/html/login-1.2.html";
- item.Encoding = "utf-8";
- item.ContentType = "application/x-www-form-urlencoded";
- item.UserAgent = "Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0";
- item.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
- item.Allowautoredirect = true;
- HttpResult result_login = http.GetHtml(item);
复制代码 XXXXXX 处是帐号
YYYYYY 处是密码
弄了很久一直不行。
谢谢了。
|
|