C#遍历CookieContainer

 foreach(System.Net.Cookie cookie in webIf.Cookie.GetCookies(new Uri("http://baidu.com")))
  {
            string str= cookie.Name + "=" + cookie.Value;
   }

原文地址:https://www.cnblogs.com/xiaofoyuan/p/2312132.html