Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to configure a virus scanning proxy server specifically to scan files being uploaded. Scanning flies being downloaded seems to be the common use case, and seems to be well documented.

Not being a squid or i-cap expert, I'm using information from these guides:

The A/V proxy is working as expected for file downloads, but is not working for file uploads. What am I missing?

Here is the i-cap configuration from squid.conf:

icap_enable on
icap_send_client_ip on
icap_send_client_username on
icap_client_username_encode off
icap_client_username_header X-Authenticated-User
icap_preview_enable on
icap_preview_size 1024
icap_service service_req reqmod_precache bypass=1 icap://
adaptation_access service_req allow all
icap_service service_resp respmod_precache bypass=1 icap://
adaptation_access service_resp allow all

Let me know if there is any other information I can provide to help get to the bottom of this problem.

share|improve this question

I think this is a limitation in c-icap. This reference is a bit old, but the main developer of c-icap says:

It has to do with the way the data coded in POST requests. When the POST request will contain multipart form data will not work well.

This means that uploads aren't well supported on c-icap. It seems the only option you have is to replace c-icap with another ICAP server but, from my research, it seems that all the others are rather old or abandoned.

share|improve this answer
So using two squids on the same machine and make an upload a download on one of them may work? – Nils Feb 22 '13 at 21:38
it is not the answer I was looking for but your research deserves bounty. thank you – Kemal Feb 23 '13 at 13:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.