HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create("http://211.139.140.13/index.htm");
httpRequest.AllowAutoRedirect = true;
httpRequest.KeepAlive = true;
httpRequest.Accept = "txt/html";
httpRequest.ContentType = "application/x-www-form-urlencoded";
httpRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)";
HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();
SetTxt(httpResponse.Cookies.Count.ToString());返回的是0 但是明明有一个JSESSIONID的COOKIE在那里~高手指点