0 Replies Latest reply on Jan 24, 2017 2:54 AM by frkas

    ICAP javaclient question


      I have downloaded an ICAP java client from https://github.com/Baekalfen/ICAP-avscan. But I cant really get it to work. Im not sure if its the client or the scanningserver that are not working correctly.


      First I send this, according to the client Im supposed to get preview back but I dont.

      getOptions request:

      OPTIONS icap://xxxx9554/avscan ICAP/1.0

      Host: xxxx9554

      User-Agent: IT-Kartellet ICAP Client/1.1

      Encapsulated: null-body=0



      ICAP/1.0 200 OK

      Date: Tue 24 Jan 2017 08:09:00 GMT

      Methods: RESPMOD

      Service: McAfee VirusScan Enterprise for Storage

      Service-ID: VSES

      ISTag: "5800.7501.8416.0"

      X-Allow-Out: X-Infection-Found, X-Violations-Found, X-AV-License

      X-AV-License: 1

      Allow: 204

      Max-Connections: 130

      Options-TTL: 3600

      Encapsulated: null-body=0



      Then I send this including the whole file:

      RESPMOD icap://xxxx/avscan ICAP/1.0

      Host: xxxx9554

      User-Agent: IT-Kartellet ICAP Client/1.1

      Allow: 204

      Preview: 0

      Encapsulated: res-hdr=0, res-body=27



      Content-Length: 5236200






      After that, when Im trying to read the answer with dataInputStream.read the program hangs for around 1 minute before it continues without getting any header.


      Can someone please help me with suggestions or a working javaclient?