cookie转CookieCollection

CookieCollection cookiesResponse = new CookieCollection();

if (response != null)
{
foreach (string cookie in response.Headers["Set-Cookie"].Split(';'))
{
string name = cookie.Split('=')[];
string value = cookie.Substring(name.Length + );
cookiesResponse.Add(new Cookie(name.Trim(), value.Trim(), path, domain));
}
}
上一篇:三星笔记本进入BIOS后找不到U盘启动项/快速启动键F12没有反应


下一篇:JS获取滚动条距离顶部高度