Last post Dec 18, 2006 10:08 AM by ronb1191
Dec 15, 2006 03:49 PM|ronb1191|LINK
I want to get the win32status code (sc-win32-status) for each http request like what you would see when reading an IIS Log file created using the W3C Extended Log Format. I have figured out how to get the
HTTPStatusCode (like 200 for success using Response.StatusCode).
The reason for this is that we are not using IIS Web Log files for Web Logging so I have to write an
HTTPModule for this task. I have everything working in the HTTPModule so far. I am using VB.NET with Visual Studio 2003.
Does anyone know how to accomplish this? If so, can you please provide details and code?
Dec 18, 2006 05:08 AM|GeorgeZ|LINK
sc-status is different from sc-win32-status, Response.StatusCode should be sc-status in IIS log
Dec 18, 2006 10:08 AM|ronb1191|LINK
I want to get the win32status code (sc-win32-status), as well as the HTTPStatus Code (sc-status). IIS Log can get both. I have already figured out how to get the HTTPStatus code using
Response.StatusCode in my HTTPModule. But, I also need the win32 status code which I know is different that sc-status code. How do I get that one as well?