Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
On Sun, 20 Aug 2000, Alex Menendez wrote: unfortunately, I am not entirely sure what a cgi is going to output all the time. The cgi might try to do a redirect using the Location field. Therefore, I don't think I can simply send_http_headers as type text/html... right, my $lookup =

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
h, I have tried what you suggested and it is still not generating the headers. I have tried calling the send_http_header function both before and after the handler switch and it still is not working. I think it is bug but I am not sure. At any rate, here is some of the module code and the

Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
whoops. yeah, $subr-send_http_header won't work for the same reason send_http_header() calls within run() do not. you'll just need to propagate subrequest info like so: my $subr = $r-lookup_uri($uri); $r-send_http_header($subr-content_type); $subr-run;

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
ok, what about cgi's that generate Location: headers. Am I out of luck here? should I contemplate changing src for ap_run_sub_req thanx, -amen On Mon, 21 Aug 2000, Doug MacEachern wrote: whoops. yeah, $subr-send_http_header won't work for the same reason send_http_header() calls within

Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
On Mon, 21 Aug 2000, Alex Menendez wrote: ok, what about cgi's that generate Location: headers. Am I out of luck here? should I contemplate changing src for ap_run_sub_req doh, right, headers are not added until run(). no need to change ap_run_sub_req, we can support this. with the patch

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
hey, guys just for the recordI finally got this thing to work. However, it does have some bizarre behavior. After compiling the patch, $subr-run(1) returns headers without calling the send_http_header method. This holds true for static files and for cgis that only set the content type

cgis and subrequests

2000-08-20 Thread Alex Menendez
Hello, all I have a module that appends a line of stats sensitive information to the bottom of html pages or cgi scripts. the module uses lookup_uri() to generate a subrequest then calls run() to output the actual contents of the file. the eagle book says that calling run() on a subrequest

Re: cgis and subrequests

2000-08-20 Thread Rick Myers
On Aug 20, 2000 at 19:38:53 -0700, Alex Menendez twiddled the keys to say: cgi scripts. the module uses lookup_uri() to generate a subrequest then calls run() to output the actual contents of the file. the eagle book says that calling run() on a subrequest should automatically send the

Re: cgis and subrequests

2000-08-20 Thread Alex Menendez
unfortunately, I am not entirely sure what a cgi is going to output all the time. The cgi might try to do a redirect using the Location field. Therefore, I don't think I can simply send_http_headers as type text/html... thanx, though -amen Rick Myers wrote: On Aug 20, 2000 at 19:38:53 -0700,