Last post Dec 04, 2015 02:30 AM by Nan Yu
Dec 03, 2015 02:34 PM|Puma613|LINK
I am trying to get the raw http request (headers and body or just body by itself will be ok) within a web api method, I have this code :
byte request = await Request.Content.ReadAsByteArrayAsync();
But the request variable is always empty even though the HTTP POST has got information in the body.
Can anyone help?
Dec 03, 2015 09:03 PM|damienBod|LINK
Use [FromBody] with a object parameter
Dec 04, 2015 02:30 AM|Nan Yu|LINK
I am trying to get the raw http request (headers and body or just body by itself will be ok) within a web api method
Please refer to link below for details :
Accepting Raw Request Body Content with ASP.NET Web API