IIS API Monitor in a web application

2019-09-19 13:39发布

问题:

I'm trying to implement a simple web application that will sit between IIS and the application. I need to monitor the API activity to get the calls and outgoing messages. I've been trying to mess around with HTTPListener as directed here: http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx, but the request always come up as null. Probably I'm looking in the wrong place, but any help/experience in this area is greatly appreciated.

Thanks!

回答1:

you need to play with httpmodule and httphandler, and if you want it more generice look at ISAPI filters