C# 访问请求正文(text/xml)

C# 访问请求正文(text/xml),c#,httpwebrequest,xmlhttprequest,content-type,C#,Httpwebrequest,Xmlhttprequest,Content Type,如何访问ASP.NET C中服务器端的内容类型为text/xml的请求的正文内容。而不是响应内容查看类,特别是属性 byte[] bytes = Request.BinaryRead(Request.ContentLength); System.Text.Encoding enc = System.Text.Encoding.UTF8; _XmlData = enc.GetString(bytes);

如何访问ASP.NET C中服务器端的内容类型为text/xml的请求的正文内容。而不是响应内容查看类,特别是属性

byte[] bytes = Request.BinaryRead(Request.ContentLength);
System.Text.Encoding enc = System.Text.Encoding.UTF8;
_XmlData = enc.GetString(bytes);