c# 如何模拟登陆后操作
这段代码 在不需要登陆的页面操作没有问题 但需要登陆的页面 就不行 不知道该如何修改请教了               HttpWebRequest request = null;
               HttpWebResponse response = null;
               //CookieContainer cc = new CookieContainer();
               request = (HttpWebRequest)WebRequest.Create(loginUrl);
               request.Method = "POST";
               request.ContentType = "application/x-www-form-urlencoded";
               byte[] postdatabyte = Encoding.UTF8.GetBytes(postdata);
               request.ContentLength = postdatabyte.Length;
               request.AllowAutoRedirect = false;
               //request.CookieContainer = cc;
               request.KeepAlive = true;
               Stream stream;
               stream = request.GetRequestStream();
               stream.Write(postdatabyte, 0, postdatabyte.Length);
               stream.Close();