Hi, This is requirement as if there is need to replace "User-Agent" with custom vale defined in the configuration file(squid.conf). And if "User-Agent" is not present in HTTP Request Header then squid fails to replace it, so if it is not present then add it and then replace it - is the approach I am thinking and have made changes accordingly.
I have downloaded Squid-2.6 source code from ":pserver:[email protected]:/squid" and have made changes in code. I have attached patch for the same. Request you to go through the code. Request -- *Thanks * ***Vinayak S. Samak * *Please don't print this Email unless you really need to. This will preserve trees on planet earth.* *Save Electricity, Water & Paper!! Go green for better tomorrow :) * *[image: See full size image]* * *
<<image005.jpg>>
squid-2.6.patch
Description: Binary data
