« Previous Next »

Answered Thread: is it possible to intercept all requests and do some preprocessing?

Last post 05-08-2009 5:46 PM by steve schofield. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 05-06-2009, 9:12 AM

    • e1ny
    • Top 50 Contributor
    • Joined on 12-10-2007, 9:50 PM
    • Posts 188

    is it possible to intercept all requests and do some preprocessing?

    Hi All: I have an ASP-based website running on IIS6, and have some VBScript that runs on every page that logs some traffic info to a sql2005 dB.

    I also have a PHP-based blog that I want to do the same thing on. I realize I could rewrite the VBScript code in PHP and log it to the same dB, but I'm wondering if there's any way to handle the logging before either the ASP or PHP is processed in IIS6?

    Would this require some sort of ISAPI plugin to be written? And am I correct that I could do this on IIS7 with an http module?

  • 05-07-2009, 8:56 PM In reply to

    Re: is it possible to intercept all requests and do some preprocessing?

    ISAPI is probably the only way you'll get this type of functionality.  With IIS 7, you could use an HTTP Module and integrated mode.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 05-08-2009, 12:45 PM In reply to

    • e1ny
    • Top 50 Contributor
    • Joined on 12-10-2007, 9:50 PM
    • Posts 188

    Re: is it possible to intercept all requests and do some preprocessing?

    steve schofield:

    ISAPI is probably the only way you'll get this type of functionality.  With IIS 7, you could use an HTTP Module and integrated mode.

    Thanks Steve...are there any examples of something like this (for IIS7) out there?
  • 05-08-2009, 5:46 PM In reply to

    Answered Re: is it possible to intercept all requests and do some preprocessing?

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (4 items)
Microsoft Communities