Netscape/1.1 SSI-commands from CGI not prosessed, hot to fix ?

Netscape/1.1 SSI-commands from CGI not prosessed, hot to fix ?

Post by Mikael Willbe » Sun, 31 Mar 1996 04:00:00



The problem:

When sending SSI-commands from CGI-script they are just dumped
to client, not prosessed by the server, like

(PERL) print "<!--#echo var=\"LAST_MODIFIED\" -->";

What have i tried:

CGI-program works (exept SSIs)
SSI-commands work from plain HTML-pages
Sending "text/x-server-parsed-html" as a Content-type of the script

Server info:

Netscape-Communications/1.1
#exec SSI-command is disabled

Any ideas to how to fix this ?

Thanks in advance,

Mig

--
** Mikael Willberg *** "Oh dear", says God, "I hadn't thought of that" *****
*                   *  and promptly vanishes in a puff of logic.           *
*     Radio Sata    *                                     (Douglas Adams)  *
****** Finland ********** http://www.sata.fi/~mig/ *************************

 
 
 

1. Q:CGI/1.1:400 Status to Client from CGI/HTTPD

CASE: server is HTTP/1.0 with CGI/1.1 capability.  i am writing CGI
that returns a Status of 400 or 500 if there's an error (C lib...).

reading the CGI spec on hoohoo.ncda.uiuc.edu i have decided to
return a simple one line Header with the following:
        HTTP/1.0 400 Failure\n
this seems sufficient from the spec.

this Header does not return a 400 code to my browser but instead fails at the
server:
        [Tue Jun 13 10:41:14 1995] httpd: malformed header from script

if i include text/plain, like an error message:
        HTTP/1.0 400 Failure\n

        this is a dummy error message
then i get the dummy error message in my browser and NOT an 400 error code

PROBLEM:  how can i code a CGI header with a non-200 code that will be accepted?
moreover, how can i code CGI to return an error code that causes HTTPD to
return a non-200 error code?

have i missed the BIG IDEA?

thanks
//michael
--

:: ob disclaimer: opinions expressed are not those of xerox, corp.

2. sendmail + mysql

3. Netscape Server, init-cgi, and SSI?

4. XDM with 32 bit display

5. SSI exec CGI problems - NetScape Commercer and Perl script

6. Non-blocking writing on a Named pipe

7. ssi & cgi not working for virtual domains

8. plotting bar charts

9. Hot/cold allocation -- swsusp can not handle hot pages

10. ePerl+NPH-CGI/1.1 complaint+Apache 2.0.39+SunOS 5.9

11. How to put HTTP/1.1 401 Access Denied to responce in CGI script

12. Need help getting Java Cgi program to work on Apache 1.1 & HPUX 9.07

13. Please can you help me with CGI in Apache 1.1 (same question with email address)