przybyla - 2023-07-24

Hi everybody,
I have a problem with c-icap and squid because i would like to change or to add an header.
And it doesn't work ! Please help me !
I have this configuration between squid and c-icap.
in squid.conf :
icap_enable on
adaptation_send_username on
adaptation_send_client_ip on
icap_service service_echo respmod_precache bypass=0 icap://10.0.0.1:1344/echo
icap_service service_url_check reqmod_precache bypass=1 icap://10.0.0.1:1344/url_check

        adaptation_access  service_url_check  allow all
        adaptation_access service_echo allow all

        icap_service_failure_limit -1
        icap_preview_enable on
        icap_preview_size 1024
        icap_client_username_header X-Authenticated-User
        icap_client_username_encode on

in /etc/c-icap/srv_url_check.conf
url_check.DefaultAction pass HttpHeaderAddIfNone Cookie "ff=off"

when i do this command :
/usr/bin/c-icap-client -i 10.0.0.1 -s url_check -req https://www.dailymotion.com -v

I have :

ICAP HEADERS:
ICAP/1.0 200 OK
Server: C-ICAP/0.5.3
Connection: keep-alive
ISTag: CI0001-XXXXXXXXX
X-Next-Services
X-ICAP-Profile: default
X-Attribute: ALL
X-Response-Info: ALLOWED
X-Response-Desc: URL category ALL is ALLOWED
Encapsulated: req-hdr=0, null-body=183

REQMOD HEADERS:
GET https://www.dailymotion.com HTTP/1.0
Date: Mon Jul 24 17:00:52 2023
User-Agent: C-ICAP-Client/x.xx
Cookie: ff=off
Via: ICAP/1.0 mike (C-ICAP/0.5.3 Url_Check demo service )

I see this header but when i use squid, i don't see the header on the client with the web browser.