[C#] 纯文本查看 复制代码 _item = new HttpItem()
{
URL = string.Format(url, st, par, ksts),
ResultCookieType = ResultCookieType.CookieCollection,
Method = "Get",
Accept = "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01",
CookieCollection = _cookieList,
ContentType = "application/x-www-form-urlencoded; charset=UTF-8",
Timeout = 10000,
Referer = "https://login.taobao.com/member/login.jhtml?",
Host = "login.taobao.com",
KeepAlive = true,
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
};
HttpResult hResult = _http.GetHtml(_item);
AddCookie(hResult.CookieCollection);
result = hResult.Html; 长话短说,本人用HttpHelper登录某网站,登陆成功后Get获取订单列表,返回未登录,请问HttpHelper是否能保持session状态让我的客户端一直保持登录状态。
|