|
1金钱
string url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=b5a6a5d5c074488ea4d9230618f64265&lang=zh_CN&scan=1431913264&fun=new";
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = url,
Method = "GET",
ContentType = "text/html; charset=utf-8",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
Host = "wx2.qq.com",
Referer = "https://wx.qq.com/",
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36",
Allowautoredirect = true,
ResultType = ResultType.String,
KeepAlive = true,
};
item.Header.Add("Accept-Language:zh-CN,zh;q=0.8");
item.Header.Add("Accept-Encoding:gzip, deflate, sdch");
HttpResult result = http.GetHtml(item);
string cookie = result.Cookie;
按部就班的写,为啥获取不到cookie信息。。。。。
|
|