Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access post data directly

Tags:

asp.net-mvc

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 parameters and I need to be able to parse the parameters.

How can I access the post data from within the action?

This is potentially a very simple question!

Thanks

like image 255
AndrewC Avatar asked May 04 '11 14:05

AndrewC


1 Answers

The POST data from your HTTP Reques can be obtained at Request.Form.

like image 129
Jim Bolla Avatar answered Sep 20 '22 10:09

Jim Bolla