Solved

Server Side Includes inside a CGI program

Posted on 1997-10-08
1
171 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 50 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now