?
Solved

DOS .EXE as CGI

Posted on 1998-12-23
1
Medium Priority
?
236 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 400 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

801 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