I\'m trying to access a request\'s raw input body/stream in ASP.net 5. In the past, I was able to reset the position of the input stream to 0 and read it into a memory strea
You need to call Request.EnableRewind() to allow the stream to be rewound so you can read it.
string bodyAsString; Request.EnableRewind(); using (var streamReader = new StreamReader(Request.Body, Encoding.UTF8)) { bodyAsString = streamReader.ReadToEnd(); }