Solved

execute cgi from file://

Posted on 1998-06-25
6
161 Views
Last Modified: 2013-12-25
I need to be able to have perl CGI scripts executed from a local network rather than from the WWW. So the user would enter "file://..." on Unix or "file:C|\..." on Windows to start the path of the script rather than "http://..". The problem is that in Netscape, a window pops up that asks the user whether they want to save the file of type "application/x-perl". I want the user to be able to run that script so that they can have the interface of Netscape to run a script that will do something. And I don't want each user to have to modify their helper applications preferences. Of course, I also don't want the perl script to be displayed as plain text on the browser. I tried both text/plain as well as text/html as content types. Maybe I'm using them wrong???
0
Comment
Question by:Pakman
6 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1829966
You need a web server to run CGI scripts, even locally.

-julio
0
 
LVL 2

Accepted Solution

by:
johnny99 earned 150 total points
ID: 1829967
Well, yes and no, you need the PERL program to run PERL scripts and you should be able to download a version of it for whatever platform you're on: but to have it return HTML to Netscape, yes, you need a web server.

However if you've got Windows NT servers, you should be able to set up a directory as an Intranet web server, and this is also possible with Mac servers of course.

Short answer: *can't* be done without a Web Server, *can* be done without the Internet.
0
 

Author Comment

by:Pakman
ID: 1829968
The script does exist on a web server. If I pull it up as http://somedomain/script.pl, it executes. But if I run it as file://path/script.pl it pops up the 'Unknown File Type' dialog box. It is on a Unix Apache web server.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Expert Comment

by:julio011597
ID: 1829969
johnny the question-locker - among other interesting things - wrote:
>
> However if you've got Windows NT servers, you should be able to set up a
> directory as an Intranet web server

There are public domain web servers even for Win95.

While Packman revealed:
>
>  If I pull it up as http://somedomain/script.pl, it executes

So, why would you call it through "file:"? As said, CGI scripts need web servers, and web servers are also known as *http* servers...

-julio
0
 

Author Comment

by:Pakman
ID: 1829970
johnny99 said:
> Short answer: *can't* be done without a Web Server, *can* be done without the Internet.

Well, how can it be done without the Internet? It must not go out on the Internet.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1829971
With a local web server on your machine.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

17 Experts available now in Live!

Get 1:1 Help Now