>
> sub f( $ )
> {
> Apache::Include->virtual( shift );
> }
>
The problem with sub-request (as long as they don't refer to Embperl pages),
is that the output is always directly send to the browser, you can't
intercept it (expection: when the subrequest runs a perl script, then set
optRedirectStdout). On the other side Embperl normaly outputs it page at the
end of the request, so the output of the subrequest will be send to the
browser _before_ Embperl starts outputing anything. This is the reason why
you need optEarlyHttpHeader. (Apache 2.0 will have a hook to handle such
situations)
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
> 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]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]