Access post data directly

前端 未结 6 820
时光说笑
时光说笑 2020-12-15 02:45

I have an action in one of my controllers that is going to receive HTTP POST requests from outside of my MVC website.

All these POST requests will have the same par

6条回答
  •  太阳男子
    2020-12-15 03:27

    Use

    Request.InputStream 
    

    This will give you raw access to the body of the HTTP message, which will contain all the POST variables.

    http://msdn.microsoft.com/en-us/library/system.web.httprequest.inputstream.aspx

提交回复
热议问题