On Tue, 17 May 2005, Beamish-White, James, VF-NZ wrote:
> I have got some patch code that another developer did 4 years ago, which
> I'm trying to get to work against the current stable release of squid.
Ok.
> What we need to do is use squid to pass the User-Agent header to a
> helper (e.g. perl script) to rewrite as necessary. This is in particular
> to strip a -EMULATOR off phone names (e.g. User-Agent:
> SHARP-G3-EMULATOR) for a WAP/3G service. I have it mostly working, but
> there's an error when it does work, and if I also include the
> redirect_program directive in the squid.conf (a requirement), it hangs
> without response.
If you could post the patch it would be easier to help you out.
From your problem description it sounds like the patch hooks into the
request flow in a sub-optimal manner..
If not done already I would probably add a lookup cache as well to avoid
repeated helper lookups for the same user-agent string.
Regards
Henrik
Received on Mon May 16 2005 - 18:58:30 MDT
This archive was generated by hypermail pre-2.1.9 : Tue May 31 2005 - 12:00:03 MDT