W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Can you add a filter to ProxyFrame?

From: Ray Cromwell <ray@westlake.com>
Date: Sun, 7 Feb 1999 15:59:38 -0500 (EST)
Message-Id: <199902072059.PAA16794@biggles.westlake.com>
To: www-jigsaw@w3.org
Cc: ray@biggles.westlake.com (Ray Cromwell)

I have an application where I have to modify the contents of proxied html
documents. For instance, replace the "</body>" tag in HTML documents with
a footer/nav bar.

So I download Jigsaw and tried something very simple. I took GZIPFilter,
altered it so that rather than compressing a stream, it read it line by line
running regular expressions on it, and writing the results to the output

I then attached it to the /User/ frame, and also to the RelNotes.html resource
in the admin interface, and it works!

Next, I tried attaching it to the ProxyFrame, but I get some kind of warning
message spit to the standard out, and although visually it succeeds,
when I restart the server, my filter has disappeared.

I also edited the "properties" section, and deleted CacheFilter, and added
my filter.  However, no matter what I do, "CacheFilter" reappears and mine

My hunch is that initialization code for ProxyFrame or ForwardFrame has these
hardcoded, but I can't find out where.

Can anyway tell me how I can add a outgoing filter to the Proxy?  I'm at the
end of my rope, and the next thing I'm going to do if I can't find out
an elegant solution is to hack my filter directly into CacheFilter's
outgoingFilter function. :(

Received on Sunday, 7 February 1999 17:37:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:33 UTC