Syntax and parameters for the sample HTTP client

You can specify one or more files and several options to the sample HTTP client.

The following output is produced by client -h command:

Example:

Usage: ./client [options] [files to scan]

Where options are:

-s Address of a http-service, default value: /tmp/.kavhttpd

-t Network timeout, default value: 2000 msec

-f If "-f" option is presented, use scanfile method.

Otherwise scanmemory is used.

Warning! Scanfile method can be used only with unix_socket connection

-h show this help

Following options are available:

Connection type

There are two connection types supported by the sample HTTP client:

Timeout

The sample HTTP client uses the client timeout specified by -t option for scan operation.

This timeout is for sending the request to KAV HTTPD and receiving the response. If several files are scanned in one operation, this is the individual timeout for each file.

Default timeout value is 2000.

Note that KAV HTTPD uses a separate timeout for incoming requests, which is specified in KAV HTTPD configuration file.

Scan mode

There are two scan modes supported by the sample HTTP client, which you can specify by using -f option:

Files to scan

You can specify one or more files to scan, separated with a whitespace. Depending on the scan mode, the sample HTTP client then passes paths to these files, or their contents to KAV HTTPD.

Page top