I need to bind to an event in the request pipeline where both the Request and Response are populated. The Request is simple, but I need the StatusCode off the Response object. At what point in the pipeline is the Response populated?
views:
54answers:
1
A:
Take a look at this page under the "The request is processed by the HttpApplication pipeline" section. The "EndRequest" event should have what you need.
David
2009-03-16 21:16:57
It's populated, but it doesn't appear to be accurate. It's returning 200, even when something isn't found.
Deane
2009-03-16 21:25:37
Do you have a custom 404 page?
David
2009-03-16 21:35:00
Yeah, I think it's something to do with my server set-up -- its rewriting the URL or something.
Deane
2009-03-16 21:45:47