Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Netscape Enterprise 3.5 & Perl CGI

Posted on 1998-10-07
3
Medium Priority
?
337 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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

971 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