Im trying to transmit a string from client to ASP.NET MVC4 application.
But I can not receive the string, either it is null or the post method can not be found (404
For WebAPI, here is the code to retrieve body text without going through their special [FromBody] binding.
public class YourController : ApiController { [HttpPost] public HttpResponseMessage Post() { string bodyText = this.Request.Content.ReadAsStringAsync().Result; //more code here... } }