SSI for CGI output ...

2015-06-20 Thread Marcos Camargo
Is it possible to have SSI parse CGI output? I would like to include the header 
and footer using the include command available in SSI inside a CGI script. How 
do I do that? Do I have to specify a different Content-type?

Thanks,

Marc



RE: SSI for CGI output ...

2015-06-20 Thread Marcos Camargo
I am not seeing the file being included in my webpage. This is what I have as 
far as code and setup

This is my content type:
Content-type: text/html

This is the code in perl script:
   print qq(!--#include virtual=logo.inc --\n);

This is my .htacess
Options +Includes
XBitHack on

I could not find any documentation on how to do SSI in CGI output.

Thanks,

Marc

-Original Message-
From: Marcos Camargo [mailto:mcama...@broadcom.com] 
Sent: Saturday, June 20, 2015 8:45 AM
To: dev@httpd.apache.org
Subject: RE: SSI for CGI output ...

Nick,

Thanks for replying. I tried and I don't see the file included. I can't find 
any documentation on how to do it. My question is, if it is possible then how 
do I do it?

Marc

-Original Message-
From: Nick Kew [mailto:n...@webthing.com] 
Sent: Saturday, June 20, 2015 5:51 AM
To: dev@httpd.apache.org
Subject: Re: SSI for CGI output ...

On Sat, 20 Jun 2015 12:01:36 +
Marcos Camargo mcama...@broadcom.com wrote:

 Is it possible to have SSI parse CGI output? 

Yes.

If you want a longer answer, you'll have to explain what leads you to suppose 
there might be a problem with it.  Unless you've been reading tutorials for 
1998 (or earlier) Apache releases?

--
Nick Kew


Re: SSI for CGI output ...

2015-06-20 Thread Nick Kew
On Sat, 20 Jun 2015 12:01:36 +
Marcos Camargo mcama...@broadcom.com wrote:

 Is it possible to have SSI parse CGI output? 

Yes.

If you want a longer answer, you'll have to explain what leads
you to suppose there might be a problem with it.  Unless you've
been reading tutorials for 1998 (or earlier) Apache releases?

-- 
Nick Kew


RE: SSI for CGI output ...

2015-06-20 Thread Marcos Camargo
Nick,

Thanks for replying. I tried and I don't see the file included. I can't find 
any documentation on how to do it. My question is, if it is possible then how 
do I do it?

Marc

-Original Message-
From: Nick Kew [mailto:n...@webthing.com] 
Sent: Saturday, June 20, 2015 5:51 AM
To: dev@httpd.apache.org
Subject: Re: SSI for CGI output ...

On Sat, 20 Jun 2015 12:01:36 +
Marcos Camargo mcama...@broadcom.com wrote:

 Is it possible to have SSI parse CGI output? 

Yes.

If you want a longer answer, you'll have to explain what leads you to suppose 
there might be a problem with it.  Unless you've been reading tutorials for 
1998 (or earlier) Apache releases?

--
Nick Kew