|
抓微信的时候https://mp.weixin.qq.com/;登录时如果没出码是可以获取cookie的,但出码(要在网页上输错几次密码就会出吗)后cookie就获取不到了;
下面是httpitem的参数,帮我看看是不是有哪里没设置好
item.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0";
item.Host = "mp.weixin.qq.com";
item.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
item.ContentType = "application/x-www-form-urlencoded";
item.Referer = "https://mp.weixin.qq.com/";
item.URL = "http://mp.weixin.qq.com/cgi-bin/login?lang=zh_CN";
item.Method = "POST";
item.Postdata = postdata;
item.ResultCookieType = ResultCookieType.CookieCollection;
result = new HttpHelper().GetHtml(item);
|
|