I'm trying this library with Symantec Cloud services and for files that are clean, it's working fine. But for files that are infected, getting the following exception:
Could not scan file <filename>: Unrecognized or no status code in response header.
While digging deep, I found that if a file is infected Symantec will be returning 201 status code with the scan results.
There might very well be some missing or faulty code. I haven't had access to any ICAP hardware in years, so I rely on others to make pull-requests with fixes.
I'm trying this library with Symantec Cloud services and for files that are clean, it's working fine. But for files that are infected, getting the following exception:
While digging deep, I found that if a file is infected Symantec will be returning 201 status code with the scan results.
For example, here's a sample response:
And it looks like we're missing some implementations here? (since it seems to be a standard as per https://onlinehelp.opswat.com/corev3/2._ICAP_response_headers.html). Not demanding, just want to know your viewpoint on this.