开心每一天1111
HttpWebRequest HttpWReq = (HttpWebRequest)WebRequest.Create("XXXXX");HttpWReq.KeepAlive = false;HttpWReq.Method = "Post";HttpWReq.CookieContainer = new CookieContainer();HttpWReq.CookieContainer.Add(new Cookie("name", "value"));HttpWebResponse HttpWResp = (HttpWebResponse)HttpWReq.GetResponse();HttpWResp.Close();