« Previous Next »

Thread: IIS 6.0: How to identify at runtime if extension is used in wildcard mapping

Last post 10-01-2008 3:59 PM by anilr. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-01-2008, 1:21 PM

    • rajivdk
    • Not Ranked
    • Joined on 10-01-2008, 5:15 PM
    • San Francisco, CA
    • Posts 2

    IIS 6.0: How to identify at runtime if extension is used in wildcard mapping

    Hi,
     
    I have an ISAPI extension that is used as an application extension mapping and now I am extending it to be used as a wildcard mapping as well (supporting server-side redirection using HSE_REQ_EXEC_URL).
     
    Is there a way I can distinguish between the two (whether used in wildcard mapping or not), in my code at runtime?

    The reason is, if my extension is mapped as an application extension, I do not want to use HSE_REQ_EXEC_URL. However, I do want to use it if my extension is used in a wildcard mapping.

    Any suggestions? 

    Thanks,
    -Rajiv. 

  • 10-01-2008, 3:23 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: IIS 6.0: How to identify at runtime if extension is used in wildcard mapping

    No, there is no way.  Just create 2 different ISAPI extensions for the 2 tasks.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-01-2008, 3:45 PM In reply to

    • rajivdk
    • Not Ranked
    • Joined on 10-01-2008, 5:15 PM
    • San Francisco, CA
    • Posts 2

    Re: IIS 6.0: How to identify at runtime if extension is used in wildcard mapping

    Thanks for the reply.

    As a follow-up question:

    It looks like HSE_EXEC_URL_IGNORE_CURRENT_INTERCEPTOR works only with extensions used as wildcard mappings.

    When I do a server-side redirect from an ISAPI dll configured as an application extension mapping, IIS sends back the request to the same DLL (does not ignore it) resulting in recursion.

    Is my understanding correct that this flag will work only for wildcard mappings? Any workarounds?

    -Rajiv.

  • 10-01-2008, 3:59 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: IIS 6.0: How to identify at runtime if extension is used in wildcard mapping

    Yes, your understanding is correct.  However, if you are doing server-side redirect (meaning the new url is different), either the new url would be mapped to something else or maybe you need to do further server-side redirect with the url if it is still mapped to your extension.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (4 items)
Microsoft Communities