1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[HttpPost] public async Task<ActionResult> qqAsync() { string str = "ok"; var request = this.Request; var response = this.Response; using (var reader = new StreamReader(Request.Body)) { var body = await reader.ReadToEndAsync(); Console.WriteLine(body); str = body; } return Content(str); } |
经常用于处理回调的方法,来处理数据。
httppost请求与http请求
发表评论