SetFilter method (IHTTPAnalyzer)

Top  Previous  Next

Syntax
object .SetFilter (FilterFile As String )

Arguments
FileName A String value. The name of the file which will be applied to the filter criteria..

Description
The SetFilter method is used to apply a filter criteria to the log entries.

Remarks
If the file name is already absolute, then it is simply returned. If it is relative, then it is appended to the HTTPAnalyzer module's (EXE or DLL) path.
e.g. httpAnalyzer.SetFilter("filter\\06.Content-type is text-html.flt");
The filter file name will be expanded as "c:\program files\ieinspector\httpanalyzerFull\filter\06.Content-type is text-html.flt".

The filter function doesn't prevent any HTTP requests from being logged. Those items which do not match with the display filter criteria will be made invisible. You can access the filtered items by using ILog.FilteredItem property. The filter has no effects on maxlogsize property and OnNewEntry event. If you want to prevent some requests being logged, please use the OnNewEntry Event's and its DiscardIt parameter.