HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://localhost/test.asp");
myRequest.Method="POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
ASCIIEncoding encoder =
myRequest.ContentLength = xmlBytes.Length;
Stream newStream=myRequest.GetRequestStream();
newStream.Write(xmlBytes,0,xmlBytes.Length);
newStream.Close();
WebResponse myWebResponse = myRequest.GetResponse();
Stream ReceiveStream = myWebResponse.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
StreamReader readStream =
response = readStream.ReadToEnd();
readStream.Close(); readStream =
myWebResponse.Close();