Microsoft Internet Security and Acceleration Server 2004 SDK

Webresponsemodifier

The implementation of ISAPI in ISA Server enables you to accumulate response chunks to form a complete response, by means of a Web filter.

The Webresponsemodifier filter collects the response chunks and then changes them depending on the complete response. This filter is an adaptation of the filter that IIS uses for compression. (The original filter was written by David Treadwell in July 1997.)

The filter adds a line of text in the HTML response before sending the response to the client.

The filter works with two notifications. In SF_NOTIFY_SEND_RAW_DATA, it collects the response's chunks, and resets the buffer size to 0. Then, when all the chunks of this response have passed SF_NOTIFY_SEND_RAW_DATA notifications, ISA Server calls the SF_NOTIFY_END_OF_REQUEST notification. The filter then modifies the response, and sends the complete response using the WriteClient function.