This request can be made only if the client and Kaspersky Scan Engine are installed and running on the same computer. If you send this request from a different computer, Kaspersky Scan Engine will throw a 405 Method Not Allowed
error.
The following example shows an HTTP request to update the anti-virus database:
POST /api/v3.0/update/start HTTP/1.0 Content-Type: application/octet-stream Content-Length: 2
{} |
The following example shows the corresponding response that is returned if the database update has been successfully initiated:
HTTP/1.0 200 OK Connection: close Content-Type: text/plain Server: KAVHTTPD/1.0 X-KAV-ProtocolVersion: 3 Date: Wed, 30 Jan 2019 18:05:44 GMT Content-Length: 26
{ "status": "update started" } |
The following example shows the corresponding response that is returned if an update is already in progress:
HTTP/1.0 200 OK Connection: close Content-Type: text/plain Server: KAVHTTPD/1.0 X-KAV-ProtocolVersion: 3 Date: Wed, 30 Jan 2019 18:05:44 GMT Content-Length: 35
{ "status": "update already launched" } |
The following example shows the corresponding response that is returned if an error occurred when launching the update:
HTTP/1.0 200 OK Connection: close Content-Type: text/plain Server: KAVHTTPD/1.0 X-KAV-ProtocolVersion: 3 Date: Wed, 30 Jan 2019 18:05:44 GMT Content-Length: 40
{ "status": "error while launching update" } |