HTTP_FILTER_LOG Structure

The HTTP_FILTER_LOG structure has the following form:

typedef struct _HTTP_FILTER_LOG

{

const CHAR *    pszClientHostName;             //IN/OUT
const CHAR *    pszClientUserName;             //IN/OUT
const CHAR *    pszServerName;                 //IN/OUT
const CHAR *    pszOperation;                  //IN/OUT
const CHAR *    pszTarget;                     //IN/OUT
const CHAR *    pszParameters;                 //IN/OUT
DWORD        dwHttpStatus;                     //IN/OUT
DWORD        dwWin32Status;                    //IN/OUT

} HTTP_FILTER_LOG, *PHTTP_FILTER_LOG;

This structure is pointed to by the pvNotification in the CHttpFilter::HttpFilterProc when NotificationType is SF_NOTIFY_LOG, which indicates that the server is about to log information to the server log file. The strings cannot be changed but pointers can be replaced. If the string pointers are changed, the memory they point to must remain valid until the next notification.

The references to  IN/OUT above indicate that the member applies to messages to (IN) and from (OUT) the filter.

Members

pszClientHostName

Client's host name.

pszClientUserName

Client's user name.

pszServerName

Name of the server the client connected to.

pszOperation

HTTP command.

pszTarget

Target of the HTTP command.

pszParameters

Parameters passed to the HTTP command.

dwHttpStatus

HTTP return status.

dwWin32Status

Win32 error code.

See Also   CHttpFilter::HttpFilterProc, CHttpFilter::OnLog