I have a ASP .Net web-application running on IIS 7/Win2K8 Standard.
What I would like help with :
As a user makes a request on the client side (browser), I want to examine the request object on the server as soon as it arrives (for logging purposes).
In particular I want to log, at the very least :
- Time of the request.
- IP address of the request.
- Size in bytes of the request.
Similarly I want to log the size of the response being rendered for the same request.
The request may be an entire page request or a partial update (updatepanel) request.
Much obliged for any help provided.
Thanks in anticipation.
Handle the Application_BeginRequest event in your Global.asax file. Something like this: