Solved

DOS .EXE as CGI

Posted on 1998-12-23
1
228 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ready Made PHP Scripts 5 62
Non root SFTP users cannot log in - Software caused connection abort 15 76
Register AutoHotkey 12 55
Configure Robocopy to excluding folders 6 46
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now