Hi, I am trying to write a filter that will sit on a proxy server and alter HTTP requests. Basically, what I want it to do is modify the User-Agent header field so that when the request is proxied, the remote web server gets a different User-Agent header field to the one that was originally sent by the browser. There are also other header fields I may need to modify, but I would imagine this is a simple task once I've worked out how to alter the User-Agent field.
Does anyone have any ideas how I might go about doing this? I've tried writing several PerlInputFilterHandlers, all with no success. Will input filters work with a proxy? I've got output filters working with no problem. Any sample code to do what I want, along with the relavent Apache directives would be very much appreciated! ******** _/ *********************************************** ***** _/ ****** Chris Pringle ** **** _/ ***** ** *** _/_/_/ _/_/_/ ***** Personal Systems Group (PSG) ** *** _/ _/ _/ _/ ***** Hewlett Packard - Bristol ** *** _/ _/ _/_/_/ ***** ** **** _/ INVENT ****** Tel - +44 (0) 117 31 29664 ** ****** _/ ******** Email - [EMAIL PROTECTED] ** ******* _/ *************************************************