[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Server Side Includes inside a CGI program

Posted on 1997-10-08
1
Medium Priority
?
194 Views
Last Modified: 2013-12-25
I am trying to use Server Side includes in my CGI generated pages.  However, I can get them working.  

I am working on a Netscape Server and I have turned on HTML parsing on all HTML documents.  Is there another setting that I need to change so that it (the server) will also parse SSI calls inside PERL generate pages?

Thanks,
0
Comment
Question by:ferreimi
1 Comment
 
LVL 3

Accepted Solution

by:
gwalters earned 100 total points
ID: 1830774
The server (by design) won't parse a CGI's output.  If that's what you really want, have your CGI generate a file accessible by the web server, then send a redirect to the browser to point at that file, usually by sending

"Location: /new/page/location\n\n"

to stdout, instead of

"Content-type: text/html\n\n***page body***"

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month20 days, 10 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question