I am using adaptation_masterx_shared_names
<http://www.squid-cache.org/Doc/config/adaptation_masterx_shared_names/>
with an ecap adapter. That function works perfectly. My ecap response is
able to set the shared name and value.
Is it possible to define an ACL which checks for the presence of the ICAP
header field set via adaptation_masterx_shared_names? I ask because it
would be nice to filter or direct the response to my RESPMOD adapter based
on that shared name or its value.
For example, the documentation on adaptation_masterx_shared_names uses the
following as its example:
adaptation_masterx_shared_names X-Subscriber-ID
I've tried defining an ACL that would match any value for X-Subscriber-ID
using either of req_header or rep_header with a specification such as the
following line (showing only req_header in this line)
acl requests_with_header_info req_header X-Subscriber-ID .+
This acl is not matching anything, and by turning on debugging I can see the
following lines in the log:
2012/12/01 10:11:28.112| ACLList::matches: checking
requests_with_header_info
2012/12/01 10:11:28.112| ACL::checklistMatches: checking
'requests_with_header_info'
2012/12/01 10:11:28.112| aclHeaderData::match: checking 'X-Subscriber-ID'
2012/12/01 10:11:28.112| ACL::ChecklistMatches: result for
'requests_with_header_info' is 0
I cannot figure out whether my acl specification is just bad, or whether
it's not possible to match based on the shared name. At this point I fear
that it simply isn't possible. Any suggestions?
-- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/acl-check-for-adaptation-masterx-shared-names-tp4657528.html Sent from the Squid - Users mailing list archive at Nabble.com.Received on Sat Dec 01 2012 - 16:17:29 MST
This archive was generated by hypermail 2.2.0 : Mon Dec 03 2012 - 12:00:04 MST