I separated my Perl code into a global file HtmlTools.pm which I include
in startup.pl, and per-page code. HtmlTools contains a function f which
executes

sub f( $ )
{
    Apache::Include->virtual( shift );
}

If f is called from within the per-page code, two sets of headers are sent
if optEarlyHttpHeader is not set. I assume the subrequest sends out one
set, then Embperl sends out another because it misses the first
one. Embperl's set ends up in the HTML output as seen by the user.

If optEarlyHttpHeader is set, the subrequest does not send its own headers
because Embperl has already sent its headers before the subrequest is
initiated. In this case, only one set is sent.

I want both subrequests and delayed http headers. For now I include
subrequests manually as text files, but ideally the subrequests should
have their own Apache handlers. Am I missing anything, is there another
way?

Thanks,
Robert



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to