Solved

CGI running Perl script and Netscape server

Posted on 1998-10-28
5
274 Views
Last Modified: 2013-12-25
I'm trying to run my CGI script using Perl on a Netscape webserver running on NT4.0.

Normally on Unix system, I can start a CGI Perl script using: <FORM ACTION="/cgi-bin/test.pl">. If test.pl is executable it will work. I know there is a trick by placing a Perl.bat file in my cgi-bin directry which will call the executable perl.exe: <FORM ACTION="/cgi-bin/perl.bat?test.pl">. Unfortunately this method does NOT work if I call my script with parameters like <A HREF="/cgi-bin/test.pl?a=hello&b=world">Link</A>. In such case, I just get an error message.

So my question is to know if there is a special other trick to do (maybe at the Netscape webserver level) t odo in order to avoid this behaviour? I know, because I tried it, a special configuration was necessary to run such script with IIS4.0 but what's about Netcape?
0
Comment
Question by:joel011197
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1829324
/cgi-bin/perl.bat?test.pl is very dangerous
what if someone calls something like /cgi-bin/perl.bat?-e+'format:%20c'
0
 

Author Comment

by:joel011197
ID: 1829325
Don't worry, the perl.bat is not running immediatly the perl.exe. We check the contents of the parameter received!
Regarding Netsacape, do you think there is another solution?
0
 
LVL 84

Expert Comment

by:ozo
ID: 1829326
What error messagee do you get with HREF="/cgi-bin/test.pl?a=hello&b=world"?
How does test.pl get its parameters?
0
 
LVL 11

Accepted Solution

by:
mouatts earned 50 total points
ID: 1829327
Check out www.ActiveState.com they have a ISAPI DDL which will allow perl scripts to be executed. It is under the Perl for Win32 link.

Initially this was just for IIS but last time I looked they were producing version for other servers and I think that Netscape was one of them.

If this doesn't work there is a secure way of executing the perl interpreter and I will go into detail then.
0
 

Author Comment

by:joel011197
ID: 1829328
Actually I found in the Netscape doc the way to do what I need: there is "Shell CGI" which can be configured on the software. So once you make the relationship at the NT level bnetween .pl or .cgi and the perl executable this option can be used. It's available since Netscape 2.x
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
ROBOFTP UNZIP 1 70
SSRS - Powershell 7 81
Extract Proxy Server  from Proxy PAC file in DOS BATCH File 4 52
Psexec with Powershell to install critical patches 5 75
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

759 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