我在递归cookie容器的PHPSSID值时遇到麻烦...我该怎么做?
获取该值的路径:
m_domainTable = Count = 1
[".biz.nf"] = {System.Net.PathList}
(new System.Collections.Hashtable.HashtableDebugView(client.CookieContainer.m_domainTable).Items[0]).Value
m_list = Count = 1
["/"] = {System.Net.CookieCollection}
m_list = Count = 2
[0] = {PHPSESSID=q40djhd9ldu7sh27561nvgia22}
谢谢
@EDIT
我刚刚在这里How can I get all Cookies of a CookieContainer?
找到了篷var allCokies = cookieContainer.GetAllCookies();
var phpSsid = allCokies.FirstOrDefault(x=>x.Name.Contains("PHP")).Value