You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Atkins <br...@posthuman.com> on 1998/02/15 06:53:29 UTC

Advice on hacking SSI parsing into CGI output

We are wanting to do this for our own obscure reasons, and
would really appreciate any advice on how to approach it.
Can we just send the CGI process' stdout fd to the
mod_include handler?

I did some light research and didn't see anyone who had
already done this...
-- 
The future has arrived; it's just not evenly distributed.
                                                       -William Gibson
______________________________________________________________________
Visit Hypermart at http://www.hypermart.net for free business hosting!

Re: Advice on hacking SSI parsing into CGI output

Posted by Ed Korthof <ed...@organic.com>.
A while ago, I set something like this up by taking the file descriptor
which (in mod_cgi) is sent to send_fd, and handing it to
send_parsed_content instead... you might want to take care of some of the
stuff send_parsed_file does first, though.

This was against an old source tree (1.2b7)... and we've gone away from
CGI, so we're not using it anymore, but I could send you the patch if
you're interested (it'd probably need some work, though -- I haven't
maintained it; and it was a very simple implementation anyway).

     -- Ed Korthof        |  Web Server Engineer --
     -- ed@organic.com    |  Organic Online, Inc --
     -- (415) 278-5676    |  Fax: (415) 284-6891 --

On Sun, 15 Feb 1998, Brian Atkins wrote:

> We are wanting to do this for our own obscure reasons, and
> would really appreciate any advice on how to approach it.
> Can we just send the CGI process' stdout fd to the
> mod_include handler?
> 
> I did some light research and didn't see anyone who had
> already done this...
> -- 
> The future has arrived; it's just not evenly distributed.
>                                                        -William Gibson
> ______________________________________________________________________
> Visit Hypermart at http://www.hypermart.net for free business hosting!
> 
>