AddHeader

The AddHeader callback function adds an HTTP header to the incoming request or outgoing response. This callback function is available only during notifications for the SF_NOTIFY_PREPROC_HEADERS and SF_NOTIFY_SEND_RESPONSE events.

BOOL WINAPI * AddHeader (

  PHTTP_FILTER_CONTEXT pfc,

  LPSTR lpszName,       

  LPSTR lpszValue       

);

 

Parameters
pfc
Points to the HTTP_FILTER_CONTEXT data structure that is associated with the current, active HTTP transaction.
lpszName
Points to the name of the header to add.
lpszValue
Points to the new string to change the header to or to \0 to delete the header.