InBlock.gif string url = "网址";
InBlock.gif     HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
InBlock.gif     string s = "要提交的数据";
InBlock.gif     byte[] requestBytes = System.Text.Encoding.ASCII.GetBytes (LoginInfo);
InBlock.gif     req.Method = "POST";
InBlock.gif     req.ContentType = "application/x-www-form-urlencoded";
InBlock.gif     req.ContentLength = requestBytes.Length;
InBlock.gif     Stream requestStream = req.GetRequestStream();
InBlock.gif     requestStream.Write(requestBytes,0,requestBytes.Length);
InBlock.gif     requestStream.Close();
InBlock.gif
     HttpWebResponse res = (HttpWebResponse)req.GetResponse();
InBlock.gif     StreamReader sr = new StreamReader(res.GetResponseStream(), System.Text.Encoding.Default);
InBlock.gif     string backstr = sr.ReadToEnd();
InBlock.gif     Response.Write(line);
InBlock.gif     sr.Close();
InBlock.gif     res.Close();