// 加入Cookie
foreach (string a in cookieStr.Split(';'))
{
cookieContainer.Add(new Cookie(a.Split('=')[0], a.Split('=')[1]));
}
HttpClientHandler httpClientHandler = new HttpClientHandler()
{
CookieContainer = cookieContainer,
AllowAutoRedirect = true,
UseCookies = true
};

 

posted on 2018-01-23 13:08  九剑.sk  阅读(135)  评论(0编辑  收藏  举报