c# - How to receive HTML Post in console application? -


i'm using mvc fetch data html post ajax call. want transform web application console application.

ajax call:

$.ajax({                   type: "post",                   url: '/home/final/',                   datatype: "json",                   data: json.stringify(response),                   contenttype: "application/json; charset=utf-8",                   success: function () {                       $('#messge').html('response saved').fadein();                   },                   error: function () {                       $('#message').html('error occured').fadein();                   } 

mvc code:

[httppost]     public actionresult final(something thing)     {         savesomething(thing);         return null;     } 

in other words, call selenium automatically fill information on website makes post call mvc controller. entity framework works or without mvc anyways.

i want change application .exe can call periodically.

is possible?

read post
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
hope helps you


Comments