How to log request inputstream with HttpModule, then reset InputStream position

后端 未结 6 1424
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 01:51

I am trying to log the contents of an http request, using an IHttpModule like so:

public class LoggingModule : IHttpModule
{
    public void Init(HttpApplica         


        
6条回答
  •  庸人自扰
    2020-12-09 02:37

    You need to use a request filter. Write a class deriving from Stream and register it as a filter.

提交回复
热议问题