I am trying to log the contents of an http request, using an IHttpModule like so:
public class LoggingModule : IHttpModule { public void Init(HttpApplica
this answer did not work. it returns an array that contains null values.
var bytes = new byte[request.InputStream.Length]; request.InputStream.Read(bytes, 0, bytes.Length); request.InputStream.Position = 0; string content = Encoding.ASCII.GetString(bytes);