Hi Paul,
First of all, I wonder if you are writing the ISAPI application to run on
Windows 2003 server/IIS 6.0. If so, you'd better to implement the solution
with a new supported wildcard ISAPI extenstion on IIS6 instead of an ISAPI
filter. This is because it isn't recommended to cover any of the following
scenarios in a filter:
1. Accessing entity request body,
2. Potential long-running operation and
3. Using SF_NOTIFY_SEND_RAW_DATA on IIS6
By using a wildcard mapping, your ISAPI extension(execute before any common
extension) can easily interact with all incoming requests of a site/vdir
and modify the responses' header and body. Please take a look at the
following article:
Benefits of Using Wildcard Application Mappings Instead of ISAPI Filters
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a
d520e25-877c-4764-bfe5-a9d5a9a5d3bb.mspx?mfr=true
The following references on MSDN should be useful and the corresponding
sample codes can be found in Windows 2003 SP1's Platform SDK.
Intercepting All Incoming IIS Requests
http://msdn2.microsoft.com/en-us/library/ms525696(VS.85).aspx
Remapping a URL Using Wildcard Application Maps
http://msdn2.microsoft.com/en-us/library/ms525529(VS.85).aspx
Implementing Custom Authentication Using Wildcard Application Maps
http://msdn2.microsoft.com/en-us/library/ms525161(VS.85).aspx
Sending Response Headers from ISAPI Extensions
http://msdn2.microsoft.com/en-us/library/ms524895(VS.85).aspx
I hope information above helps. Please update on any further questions or
concerns.
Have a great day.
Sincerely,
WenJun Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at:
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.