Export (0) Print
Expand All

ISAPI: Comparing IIS and Forefront TMG

The Forefront TMG Web proxy supports the Web filter extensibility model, so that third-party developers can examine and change the HTTP request-and-response flow by using Web filters. ISAPI extensions are not supported.

The Web proxy manages communication with clients, and therefore does not rely on Internet Information Services (IIS). The Web proxy provides the functions that are necessary for the implementation of Web filters. Web filters developed for IIS will generally require few changes to work with the Forefront TMG Web proxy because the APIs are similar.

There are several important differences between ISAPI support in IIS and Web filters in Forefront TMG.

Architecture

Web filters for IIS (ISAPI filters) are typically installed on a Web server. Web filters for Forefront TMG are installed on a Forefront TMG computer (or an array of Forefront TMG computers), between the Web server and the Web client, and act as conduits for requests to all external and internal sites. There is no local site or content, and no direct access to Web server files.

Functions

Support for general ISAPI functions, server support functions, and notification-specific functions in Forefront TMG differs slightly from IIS. The following table compares support for ISAPI functions in IIS and in Forefront TMG.

Function or notificationTaskForefront TMG supportIIS support
GetServerVariable Yes. Not all variables are supported.Forefront TMG provides some variables that are not provided by IIS.
AddResponseHeaders Yes. Headers are added by AddResponseHeaders only for responses generated by Forefront TMG, where SEND_RESPONSE is triggered. Use SEND_RAW_DATA to add headers to all responses.Yes.
WriteClient Yes.Yes.
AllocMem Yes.Yes.
ServerSupportFunction SF_REQ_ADD_HEADERS_ON_DENIALYes.Yes.
SF_REQ_DISABLE_NOTIFICATIONSYes.Yes.
SF_REQ_GET_CONNIDReturns 0.Supported by versions earlier than IIS 4.0; otherwise, returns 0.
SF_REQ_GET_PROPERTY

only for SF_PROPERTY_INSTANCE_NUM_ID

Returns 0.Yes.
SF_REQ_NORMALIZE_URLYes.Yes.
SF_REQ_SEND_RESPONSE_HEADERYes.Yes.
SF_REQ_SET_NEXT_READ_SIZENot relevant to the implementation of ISAPI in Forefront TMG. Provided for compatibility with IIS. If you use it in a Forefront TMG Web filter, you should not assume that the number of bytes read during the subsequent read operation will not exceed the value set in the ul1 parameter.Yes.
SF_REQ_SET_PROXY_INFONo.Yes.
SF_NOTIFY_SEND_RESPONSENot used when the Web proxy sends a response. Used when a filter generates a response using the SF_REQ_SEND_RESPONSE_HEADERS server support function.Yes.

 

Administration

Administration, setup, and registration are significantly different in Forefront TMG. For specific information and procedures, see Web Filter Setup.

The Forefront TMG Web proxy uses the Forefront TMG administration COM objects to store and retrieve filter configuration information.

Note  Web filters developed for Microsoft Proxy Server 2.0 are not binary-compatible with Forefront TMG because of new notifications, setup requirements, and storage functionality.

 

 

Build date: 7/12/2010

Community Additions

ADD
Show:
© 2014 Microsoft