Re: [squid-users] Set field in HTTP header in Squid 3.1

2013-09-20 Thread Amos Jeffries
On 18/09/2013 3:48 p.m., Sachin Gupta wrote: Hi, We are using Squid 3.1 and need to do the following: 1. We have a list of URLs which we want to allow. 2. Squid to read this list of URLs and for each matching entry in the list, set a particular field (insert a string) in the HTTP header. 3. Usin

Re: [squid-users] Set field in HTTP header in Squid 3.1

2013-09-19 Thread Eliezer Croitoru
Hey Sachin Gupta, what you are asking is basically related to "requests mangling" which is not the best way to do what you need. I assume that matching and insert is kind of filtering or mangling. The best option I have seen is ICAP and it's a very simple mechanism. the solution is based on the n

Re: [squid-users] Set field in HTTP header in Squid 3.1

2013-09-18 Thread Alex Rousskov
On 09/18/2013 11:10 AM, Sachin Gupta wrote: > We are in a stage where even ICAP cannot be deployed :( but eCAP probably can be. > So i had started digging into SQUID code to find where hooks can be placed. Squid development questions should be posted to the squid-dev mailing list, but here are

Re: [squid-users] Set field in HTTP header in Squid 3.1

2013-09-18 Thread Sachin Gupta
Thanks Alex. We are in a stage where even ICAP cannot be deployed :( So i had started digging into SQUID code to find where hooks can be placed. I was trying to do the following: 1. Configured and ACL (whiteLst) in squid.conf for the allowed list of file. 2. In code i am trying to find a place wh

Re: [squid-users] Set field in HTTP header in Squid 3.1

2013-09-18 Thread Alex Rousskov
On 09/17/2013 09:48 PM, Sachin Gupta wrote: > We are using Squid 3.1 and need to do the following: > 1. We have a list of URLs which we want to allow. > 2. Squid to read this list of URLs and for each matching entry in the > list, set a particular field (insert a string) in the HTTP header. > 3. U

[squid-users] Set field in HTTP header in Squid 3.1

2013-09-17 Thread Sachin Gupta
Hi, We are using Squid 3.1 and need to do the following: 1. We have a list of URLs which we want to allow. 2. Squid to read this list of URLs and for each matching entry in the list, set a particular field (insert a string) in the HTTP header. 3. Using this header string, a URL filtering program w