This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
From: Alex Burmester <adb@beast.com> To: <mason-users@lists.sourceforge.net> Subject: [Mason] Question about emulating SSI / subrequest Date: Thu, 5 Sep 2002 16:23:58 -0700 (PDT) Hi all, I'm working on a site that has a bunch of legacy crap some of which uses SSIs and it would be nice to be able to call some of those SSI's from within mason pages. Simple ones work by using $m->file() to slurp them up and spit them out but ones that contain conditional SSI logic in them need to actually go through an apache sub request. I've tried using a subrequest with my $subr = $r->lookup_uri(...) and running that but it's not working out for me. It either causes apache to hang or I get a page back with two sets of headers. Ideally I want a way to call an apache subrequest and have it handled outside of mason so that the SSIs are parsed then I want to capture the output in mason in a buffer for potential regexing then I want to spit it out where I want it in the output page. Any ideas? Thanks, Alex. ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Perrin Harkins <perrin@elem.com> To: Alex Burmester <adb@beast.com> Subject: Re: [Mason] Question about emulating SSI / subrequest Date: Thu, 05 Sep 2002 18:06:17 -0400 Alex Burmester wrote: > Ideally I want a way to call an apache subrequest and have it handled > outside of mason so that the SSIs are parsed then I want to capture the > output in mason in a buffer for potential regexing then I want to spit it > out where I want it in the output page. > > Any ideas? You'll need to implement your own SSI to do that. Apache::SSI is a good starting place, but it uses subrequests and the output will go straight to the browser. You could try one of the others (CGI::SSI, CGI::SSI_Parser) and hack it so you can capture the output. - Perrin ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users