Solved

DOS .EXE as CGI

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Interactive Script in Scheduled Task not running 8 51
Powershell File Sort 8 51
Need help Creating PowerShell Script 5 81
[Internet] Batch mode for shortening long URLs 3 34
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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…

734 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