This chapter contains information about using KAV SDK in HTTP mode.
KAV HTTPD and the sample HTTP client
In HTTP Mode, KAV SDK operates as a part of an HTTP service. This HTTP service is called KAV HTTPD. KAV HTTPD receives HTTP requests, scans files passed in these requests, and sends back HTTP responses with scan results.
Additionally, a sample HTTP client source code is shipped in the distribution package. This sample demonstrates how to make requests to KAV HTTPD. You can also use the compiled sample to scan files from the command line.
HTTP mode is available in Linux and FreeBSD only.
Connection types and scan modes
KAV HTTPD supports several ways to interact with HTTP clients.
KAV HTTPD supports two connection types:
KAV HTTPD supports two scan modes:
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.