Solved

Netscape Enterprise 3.5 & Perl CGI

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

777 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