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
Solved

.exe as CGI

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

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

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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.
The viewer will learn how to dynamically set the form action using jQuery.
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…

839 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