[C#] 纯文本查看 复制代码 private string GetUbi()
{
string url = "https://passport.baidu.com/v2/api/?loginhistory&token="+token+"&tpl=mn&apiver=v3&tt="+HttpHelper.GetTimeLikeJS()+"&callback=bd__cbs__vloqyn";
HttpHelper http = new HttpHelper();
//MessageBox.Show(cookie);
HttpItem item = new HttpItem()
{
URL = url,
Cookie = cookie,
Accept = "*/*",
Referer = "http://www.baidu.com/?tn=28035039_3_pg",
ResultCookieType = ResultCookieType.CookieCollection
};
HttpResult result = http.GetHtml(item);
Cookie UBI = result.CookieCollection["UBI"];
cookies.Add(UBI);
MessageBox.Show(UBI.ToString());
return "";
}
|