Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Sending Response Headers from ISAPI Extensions

IIS 6.0

Before an ISAPI extension delivers any output in response to a client request, it must send the client an HTTP response header. Among other things, the response header specifies the type of content being returned to the client, and whether the connection should be kept active after the request is serviced. The header must have the correct format or the client will be unable to use it.

A response header is sent using the ServerSupportFunction with the HSE_REQ_SEND_RESPONSE_HEADER_EX parameter, which replaces the HSE_REQ_SEND_RESPONSE_HEADER parameter and uses the HSE_SEND_HEADER_EX_INFO structure to specify the header information.

To add response header functionality to an extension

  1. Populate the HSE_SEND_HEADER_EX_INFO structure with the required data.

  2. Call the HSE_REQ_SEND_RESPONSE_HEADER_EX function.

  3. Handle any error conditions.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.