I'm sending them because some of my scripts have to do redirection.
But why the problem only happens _occasionally_?
Anyway, in the meantime I'm passing the outputs directly to Apache::SSI,
Apache::SSI->new(
$output,
Apache->request)->output;
Ridiculous enough, but it seems to work fine.
Thanks,
Kenneth
Ken Williams wrote:
>
> Regarding the Filter approach, are you sending the headers yourself? You
> shouldn't. Filter will do that for you.
>
> Don't know much about the OutputChain approach.
>
> [EMAIL PROTECTED] (Kenneth Lee) wrote:
> >When I try the RegistryFilter+SSI approach, the headers generated by
> >my scripts _occasionally_ show up in the output (but as I see in SSI.pm,
> >there's really no header output when Filter is On). Provided that
> >PerlSendHeader is On, if I set it to Off, the headers always show up in
> >the output.
> >
> >I then try OutputChain+SSI, it almost works, but the #include's didn't
> >come up in the right place.
> >
> >Suppose the template looks like,
> >(hello.txt contains the text "hello!")
> >
> > <!--before-->
> > <!--#include virtual="/hello.txt"-->
> > <!--after-->
> >
> >Here's what I got,
> >
> > hello!
> > <!--before-->
> >
> > <!--after-->
> >
> >What's wrong with me?
> >
> >