.net接收post请求,并转为字符串
Stream s = Request.InputStream;
int count = 0;
byte[] buffer = new byte[1024];
StringBuilder reqXml = new StringBuilder();
while ((count = s.Read(buffer, 0, 1024)) > 0)
{
reqXml.Append(Encoding.UTF8.GetString(buffer, 0, count));
}
s.Flush();
s.Close();
s.Dispose();