Solved

Netscape Enterprise 3.5 & Perl CGI

Posted on 1998-10-07
3
312 Views
Last Modified: 2013-12-25
Hello all, I've been (previously) running my servers
on Unix boxes, or Win 95/NT running Sambar (which is cool).
However, now I'm toying with Netscape Enterprise,
and can't get the thing to run my perl programs....

I have the .PL file extension associated with a PERL exe
on my system (I have two, one from Netscape & one from Sambar), and I have followed the server docs to set up
a "magnus-internal/shellcgi" MIME type and point it to
a relevant directory...

I am either getting :
[07/Oct/1998:09:54:06] failure: for host 130.130.2.37 trying to GET /cgi-bin/phone.pl, cgi-parse-output reports: the CGI program D:\Netscape\SuiteSpot\install\perl.exe did not produce a valid header (program terminated without a valid CGI header (check for core dump or other abnormal termination)

Or I'm getting a white screen with NO output.
Running from the command prompt is fine, and here is
the (first part of the) output :
Content-type: text/html

<HTML>
<HEAD>

And so on.....

So am I missing another HTTP header? Sambar didnt argue
with it, and neither do any of the Unix boxes...

The .PL extension is set up as follows :
ACTIONS|Open|
Open with :
D:\Netscape\SuiteSpot\install\perl.exe

Do I need any %1 %s info on the end of that?

I've tried matching the MIME types to no avail....

Any help appreciated....

0
Comment
Question by:ptruman
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mouatts earned 100 total points
ID: 1828969
I've not run Perl on Netscape but certainly with IIS the %1 stuff is needed so that the server knows to pass the filename as a parameter to Perl.exe.

An alternative that you might like to look at is a DLL which links into the server. I know that www.ActiveState.com has one for ISAPI and I think they may have had one for NSAPI the last time I looked. If they do then this is a much better way to run you PERL. You still write them as CGIs but the interpreter is permanently loaded (after the first call I suspect).

If you are still unsure about the settings this site has a very good FAQ. (I'm nothing to do with Active State its just that it is about the best site for Perl on NT that I have found).

Steve
0
 
LVL 1

Author Comment

by:ptruman
ID: 1828970
Looks like we're moving to IIS anyway.
I've also come across a Perl to Exe compiler, which only
needs two hooked DLL's.....
0
 
LVL 11

Expert Comment

by:mouatts
ID: 1828971
The Perl compiler has been about for quite a while but apparently is still a bit dodgy.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

708 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

16 Experts available now in Live!

Get 1:1 Help Now