Access post data directly

前端 未结 6 823
时光说笑
时光说笑 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条回答
  •  猫巷女王i
    2020-12-15 03:12

    The web server shouldn't care where the request is coming from. If your client application has a input control called username and it posts to your application it will pick up the same as if your posted if from your own application with an input called username.

    One huge caveat is if you have implemented AntiForgeryValidation which will cause a big headache to allow an outside form to post.

提交回复
热议问题