Solved

PWS and cgi

Posted on 1998-07-17
4
303 Views
Last Modified: 2013-12-25
I am running microsoft PWS under Windows 95.
I have a simple cgi program linked with Thomas Boutell's cgic library. I get to my page by http://localhost/index.htm.
I have the followin form:
<form action="C:\WEBSHARE\wwwroot\cgi-bin\mycgi.exe"
method="POST">
    <input type="hidden" name="action" value="addlink"><p
    align="left"><input type="text" size="30" maxlength="30"
    name="name"></p>
    <p align="left"><!--webbot bot="Validation"
    b-value-required="TRUE" i-minimum-length="1"
    i-maximum-length="30" --><input type="text" size="30"
    maxlength="30" name="email"></p>
    <p align="left"><!--webbot bot="Validation"
    b-value-required="TRUE" i-minimum-length="1"
    i-maximum-length="30" --><input type="text" size="30"
    maxlength="30" name="title"></p>
    <p align="center"><input type="submit" name="test1"
    value="test1"> <input type="submit" name="test2"
    value="test2"> <input type="submit" name="blah" value="blah"></p>
</form>

When I click on any button, the file download dialog box comes up trying to download my cgi executable. What do I need to do to get the cgi program to run? my cgi directory has read/execute/script permissions.
Thank You, mm
0
Comment
Question by:marvinm
[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
4 Comments
 
LVL 1

Author Comment

by:marvinm
ID: 1830836
Edited text of question
0
 
LVL 1

Author Comment

by:marvinm
ID: 1830837
Adjusted points to 100
0
 

Accepted Solution

by:
rstabl earned 100 total points
ID: 1830838
Change the line
<form action="C:\WEBSHARE\wwwroot\cgi-bin\mycgi.exe" method="POST">
to something like
<form action="http://localhost/scripts/mycgi.exe" method="POST">

The "scripts" may vary depending on the configuration of your PWS. Normally it is an alias for the cgi-bin directory in your wwwroot directory.

Regs,
 rbs.


0
 
LVL 1

Author Comment

by:marvinm
ID: 1830839
Super. Silly on my part!
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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

696 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