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:
-s option specifies the address of the KAV HTTPD or a path to the unix socket.-t option specifies the timeout for the scan operation, in milliseconds.-f option specifies the scan mode.-h option outputs the help information.Connection type
There are two connection types supported by the sample HTTP client:
To use a TCP connection, specify an ip-address in -s parameter, in ip_addr:port format.
Note that -f option is not supported with TCP connection.
To use a Unix socket connection, specify a path to the socket in -s parameter.
This is the default option. Default socket file is /tmp/.kavhttpd.
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:
-f).In this mode, the sample HTTP client passes file paths to the KAV HTTPD. KAV HTTPD then accesses the files to scan them. This mode is not supported with TCP connections for security reasons.
In this mode, the sample HTTP client passes file contents to the KAV HTTPD. KAV HTTPD then scans the contents.
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