You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sean Davis <sd...@mail.nih.gov> on 2005/06/10 14:07:12 UTC
P3P XML inclusion
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?
Thanks,
Sean
Re: P3P XML inclusion
Posted by Sean Davis <sd...@mail.nih.gov>.
On Jun 10, 2005, at 9:50 AM, Frank Wiles wrote:
> On Fri, 10 Jun 2005 08:20:10 -0400
> Sean Davis <sd...@mail.nih.gov> 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
Re: P3P XML inclusion
Posted by Frank Wiles <fr...@wiles.org>.
On Fri, 10 Jun 2005 08:20:10 -0400
Sean Davis <sd...@mail.nih.gov> 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
---------------------------------
Frank Wiles <fr...@wiles.org>
http://www.wiles.org
---------------------------------
Re: P3P XML inclusion
Posted by Sean Davis <sd...@mail.nih.gov>.
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.
Thanks again,
Sean