Solved

DOS .EXE as CGI

Posted on 1998-12-23
1
227 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

772 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

16 Experts available now in Live!

Get 1:1 Help Now