How to get cookies info inside of a CookieContainer? (All Of Them, Not For A Specific Domain)
问题 Please see the code below: CookieContainer cookieJar = new CookieContainer(); HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.google.com"); request.CookieContainer = cookieJar; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); int cookieCount = cookieJar.Count; How can I get cookies info inside cookieJar ? (All of them, not just for a specific domain.) And how can I add or remove a cookie from that? 回答1: reflection can be used to get the private