Mail Archives: djgpp/1999/10/19/15:00:22
bub (bub AT null DOT videotron DOT ca) wrote:
: Hi all,
: Been using djgpp for a little while now on windows nt.
: Today I decided to try to write a CGI application to use via
: Windows NT's Peer web service's web server. The code ( fairly
: simplistic, included below ). I get an error when I try to run
: it, claiming that the application didn't return the proper http
: headers, it then includes nothing as the error.
: I compiled the same code under Visual C++ on my work PC, and
: it runs fine... what gives ?
: I couldn't find any references to CGI or problems related to it
: in the DJGPP FAQ.
: TIA !
: - Bub
: /*----------- foo.c --------------------
: cgi app that prints blah blah in red
: */
: #include <stdio.h>
: int
: main(int argc, char **argv)
: {
: fprintf(stdout,"Content-Type: text/html\n\n");
: fprintf(stdout,"<html> <body bgcolor='000000' text='ff0000'>\n"
: "<h1> Blah blah blah </h1>\n"
: "</body> </html>");
: return 0;
: }
- Raw text -