Re: subrequest->run() doesn't send HTTP headers

2003-02-26 Thread Stas Bekman
to alter this behavior, use $sub->run(1). Ah, thank's a _lot_, that did it. Now, the only question is: why isn't that documented? Please submit a documentation patch for this. It should be somewhere in http://perl.apache.org/docs/1.0/api/ _

Re: subrequest->run() doesn't send HTTP headers

2003-02-26 Thread Geoffrey Young
subrequests do not include headers, so if you use $sub->run() to send the subrequest to the client you are required to send headers yourself. which i can't, since i have no idea about the mime-type etc. of the file ;-/ yes you do - the subrequest found out for you :) $r->send_http_header($sub->c

Re: subrequest->run() doesn't send HTTP headers

2003-02-26 Thread rm
On Wed, Feb 26, 2003 at 10:23:53AM -0500, Geoffrey Young wrote: > > > > well, the Eagle book is a little out of date here > > http://marc.theaimsgroup.com/?l=apache-modperl&m=96687764724849&w=2 > > subrequests do not include headers, so if you use $sub->run() to send the > subrequest to the c

Re: subrequest->run() doesn't send HTTP headers

2003-02-26 Thread Geoffrey Young
to alter this behavior, use $sub->run(1). see Recipe 3.16 in the Cookbook whoops, that was supposed to be 3.15. --Geoff

Re: subrequest->run() doesn't send HTTP headers

2003-02-26 Thread Geoffrey Young
[EMAIL PROTECTED] wrote: Hello list, i'm trying to run a subrequest from within a mod_perl content handler. The subrequest is build from the request's 'lookup_file()' method. Unfortunately, when i invoke the 'run()' method of the subrequest, no HTTP headers are sent (even so the documentation fr

subrequest->run() doesn't send HTTP headers

2003-02-26 Thread rm
Hello list, i'm trying to run a subrequest from within a mod_perl content handler. The subrequest is build from the request's 'lookup_file()' method. Unfortunately, when i invoke the 'run()' method of the subrequest, no HTTP headers are sent (even so the documentation from 'Writing Apache Modules