Solved

.exe as CGI

Posted on 1998-01-13
3
250 Views
Last Modified: 2013-12-25
Hi

I am using an .exe written in Borland's Delphi as a CGI program. I have a server installed (Omnicron's OmniHTTPD 1.0). However, I cannot get the server to execute the program - it continually treats it as a download. Here is the form section HTML:

<FORM METHOD="get" ACTION="cgigui.exe">
<INPUT TYPE="text" NAME="name" SIZE="50">
<INPUT TYPE="submit">
</FORM>

What am I doing wrong?
0
Comment
Question by:sderaadt
[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
3 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
ID: 1831825
If the server is sending the executable back to the browser instead of running it, it's because you haven't configured the directory where cgigui.exe lives as an EXECUTABLE directory or you haven't placed cgigui.exe in the EXECUTABLE directory you have specified.  If you're placing it in your HTML directory and trying to configure that directory to contain CGI program, stop and locate it elsewhere.  That type of configuration is a huge security risk.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1831826
Sometimes a web server considers to be CGI programs just those having a "cgi" extension.

You could try renaming your executable to "cgicui.cgi".
0
 

Author Comment

by:sderaadt
ID: 1831827
Thankyou jhance, it is often the most obvious answer that is the most elusive!
0

Featured Post

Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

Question has a verified solution.

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

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…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

622 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