ASP.NET MVC Read Raw JSON Post Data

后端 未结 3 2011
醉话见心
醉话见心 2020-12-08 19:30

This is driving me crazy. I\'m using ASP.NET MVC. I have a controller with an HttpPost action that acts as a callback URL that is called by another server (not under my cont

3条回答
  •  时光说笑
    2020-12-08 20:02

    Reset the position to Zero before reading the stream. Request.InputStream.Position = 0

提交回复
热议问题