On Fri, May 22, 2009 at 5:13 AM, sachi <sachidananda@xxxxxxxxxx> wrote: > Hi, > > I do have the following requirement. Is it possible to use > squid as client library? Whether squid exposes the required APIs? > > > > Requirement: > > I do have process HTTP request/responses. But after processing as part of > business logic, I need to send the message to ICAP server. To handle ICAP > message construction/transaction processing, I need a ICAP protocol stack. > > > > I am expecting something similar to Bell Labs client library for ICAP. > > http://www1.bell-labs.com/project/ICAP/ Hi. Squid is a server process, not a library. It offers various means and hooks to intercept its process flow: redirectors, authenticators, external ACL helpers, ICAP client capabilities and in the not-yet-stable 3.1 release the eCAP request modification capabilities. The latter seems to be similar to what you are looking for, you can check the details at http://wiki.squid-cache.org/Features/eCAP -- /kinkie