SF_REQ_SEND_RESPONSE_HEADER

You can use this support function to request that IIS send a complete HTTP response header to the client browser, including the HTTP status, server version, message time, and MIME version. Your filter can also, optionally, append other header information to the end of IIS-generated header, such as Content-Type or Content-Length.

BOOL WINAPI * ServerSupportFunction(

  PHTTP_FILTER_CONTEXT pfc,

  enum SF_REQ_TYPE SF_REQ_SEND_RESPONSE_HEADER,

  PVOID pData,

  DWORD ul1,

  DWORD ul2

);

 

Parameters
pfc
Points to the HTTP_FILTER_CONTEXT data structure that is associated with the current, active HTTP transaction.
pData
Points to a null-terminated string that contains an HTTP status string, such as "401 Access Denied." If pData is set to NULL, then the default response, "200 OK," will be sent in the response header.
ul1
Points to a null-terminated string that contains the optional HTTP headers that you want to be appended to the response header.
ul2
Unused in this support function.
Remarks

If you append your own headers to the server-generated headers, you must terminate the header string with an extra carriage return and linefeed.

This support function must be called only once per HTTP request.