Stream stream = HttpContext.Request.Body; byte[] buffer = new byte[HttpContext.Request.ContentLength.Value]; await stream.ReadAsync(buffer, 0, buffer.Length); string content = Encoding.UTF8.GetString(buffer);
需要url解码时
System.Web.HttpUtility.UrlDecode(content,Encoding.UTF8);