In the HttpApplication.BeginRequest event, how can I read the entire raw request body? When I try to read it the InputStream is of 0 length, leadin
HttpApplication.BeginRequest
InputStream
I had a similar requirement to get the raw content and struck the same issue. I found that calling Seek(0, SeekOrigin.Begin) solved the problem.
Seek(0, SeekOrigin.Begin)
This is not a particularly good approach as it makes assumptions about how the underlying infrastructure operates, but it seems to work.