I'm using AFNetworking
framework to send some data to the .Net
backend. I'm using POST:parameters:success:failure:
method.
The .net backend is reading data using the FromBody
attribute
[System.Web.Mvc.HttpPost]
public HttpResponseMessage Post([FromBody] string objCourseData, string securityToken, string appVer, string deviceDesc, string deviceOSDesc)
but it receives it as null. I've tried with PHP and I can see my body data in the $_POST
object (I can't see it in the $HTTP_RAW_POST_DATA
though). What could be the problem?
The data I'm sending is JSON object.