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

后端 未结 6 1417
伪装坚强ぢ
伪装坚强ぢ 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:35

    sometime, RequestFilter don't run to method Read. It seem be W3WP don't read content of httprequest by normal way.

    If you deploy WEbservice to server. Then use IHttpModule for catch it. Add RequestFilter.

    But method Read() of RequestFilter don't run :P

提交回复
热议问题