首页 > 代码库 > 获取post发送过来的xml包

获取post发送过来的xml包

 if (Request.HttpMethod.ToLower() == "post")
 {
byte[] ar;
ar = new byte[this.Request.InputStream.Length];

this.Request.InputStream.Read(ar, 0 , ar.Length);

string sXML = this.Request.ContentEncoding.GetString(ar);
}