Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 31461 invoked from network); 10 Jun 2005 14:05:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2005 14:05:50 -0000 Received: (qmail 8313 invoked by uid 500); 10 Jun 2005 14:05:39 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 8293 invoked by uid 500); 10 Jun 2005 14:05:38 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 8277 invoked by uid 99); 10 Jun 2005 14:05:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mailfwd.nih.gov (HELO mx5.net.nih.gov) (165.112.130.36) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Jun 2005 07:05:35 -0700 Received: from mx5.net.nih.gov (localhost [127.0.0.1]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j5AE52aq013721 for ; Fri, 10 Jun 2005 10:05:02 -0400 Received: from [128.231.145.14] (holmes.nhgri.nih.gov [128.231.145.14]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j5AE52Kd013716; Fri, 10 Jun 2005 10:05:02 -0400 In-Reply-To: <20050610085001.3f983b91.frank@wiles.org> References: <5e253b441baf66e630c243e9f1b4a2b7@mail.nih.gov> <20050610085001.3f983b91.frank@wiles.org> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: modperl@perl.apache.org From: Sean Davis Subject: Re: P3P XML inclusion Date: Fri, 10 Jun 2005 10:03:41 -0400 To: Frank Wiles X-Mailer: Apple Mail (2.622) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jun 10, 2005, at 9:50 AM, Frank Wiles wrote: > On Fri, 10 Jun 2005 08:20:10 -0400 > Sean Davis wrote: > >> >> On Jun 10, 2005, at 8:07 AM, Sean Davis wrote: >> >>> I have a P3P XML file that I want to include in the META section of >>> all HTML generated from certain locations. Unfortunately, this is a >>> >>> recently changed policy and I obviously do not want to go back to >>> change all relevant HTML and dynamically generated code. Is there a >>> >>> way to do this after-the-fact: Generate HTML as normal and then >>> modify it just before being sent to the user browser? >>> >> >> I forgot to mention--apache 1.3 with mod_perl. > > If you're using handlers and not registry scripts you can use > stacked handlers. With this you would have another module called > after your existing code that could regex the HTML output afterward, > prior to it being sent to the browser. > > See this page for more information: > > http://perl.apache.org/docs/1.0/guide/config.html#Stacked_Handlers > I think that will do it. Thanks. Sean