ICAP - Anyone?
Orcas update: My computer is too slow so I gave up testing it for now
ICAP
We have a new feature in one of our web applications - file upload!
The customer has Symantec's scan engine, and he wants us to use it in order to check the uploaded file streams before they are entering the internal systems of the organization.
Thing is the engine is interfaced using ICAP - and that's my new project:
1. Receive a file stream from the user (web based...)
2. Send a scan request which includes the file stream to the scan engine using TCP/IP.
3. Process the response and then move the file into the system in case it's clean.
So far I managed to send a request and get a response, BUT:
I got a positive response even when I sent an eicar file!!!
Well, after examining it a little deeper it appears to be that I'm not sending the stream itself properly. (not sending it at all if to be exact)
So what I'm missing here is how-do-I-send-streams-through-tcpip-using-the-icap-protocol and I'm done.