Solved

Netscape Enterprise 3.5 & Perl CGI

Posted on 1998-10-07
3
320 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

828 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