Solved

.exe as CGI

Posted on 1998-01-13
3
235 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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…
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…

803 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