Solved

DOS .EXE as CGI

Posted on 1998-12-23
1
231 Views
Last Modified: 2013-12-25
I use MS Personal WEB Server running on windows-95.
I made simple C++ CGI program:

#include <stdio.h>
int main(int argc, char *argv[])
{  puts("Content-type: text/html\n\n");
   puts("<HTML><BODY><H1>TEST123</H1></BODY></HTML>\n");
   return 0;
}

Compiled it with Borland C++ 3.0. And tried to execute it
as http://.../cgi-bin/program.exe. In the result browser
waits infinitely long.

Then i added few lines to source that writes a test word to local file to test if program was executed. The result was positive.

Then i removed this line: puts("Content-type: text/html\n\n"); to check if there was any output.

In the result browser shows me error message.

What is wrong then ?

0
Comment
Question by:CDFR
1 Comment
 

Accepted Solution

by:
plr earned 200 total points
ID: 1830262
hi!

please install WebSite (by OReily) as your www server - it's more comfortable for you!

You may use for cgi program DOS BAT files, WinCGI, Perl5 and anything else!

But if you want to stay with IIS you must find some patch for using DOS progrmas as CGI.

http://www.oreily.com/

WBR!


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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
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…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

821 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