0
如何訪問的主體(content
),其content-type
是text/xml
在ASP .NET(C#)的服務器端。 (不響應內容)訪問請求正文(text/xml)
如何訪問的主體(content
),其content-type
是text/xml
在ASP .NET(C#)的服務器端。 (不響應內容)訪問請求正文(text/xml)
byte[] bytes = Request.BinaryRead(Request.ContentLength);
System.Text.Encoding enc = System.Text.Encoding.UTF8;
_XmlData = enc.GetString(bytes);
看那HttpRequest類,特別是HttpRequst.InputStream屬性。