From: NGCIT AT chollian DOT dacom DOT co DOT kr (Chollian Newsgroup User) Subject: Re: Question regarding CGI Newsgroups: comp.os.msdos.djgpp References: <38010A1D DOT BCF60B35 AT null DOT videotron DOT ca> X-Newsreader: TIN [version 1.2 PL2] Lines: 36 Message-ID: Date: Tue, 19 Oct 1999 17:24:36 GMT NNTP-Posting-Host: 203.252.3.11 X-Trace: news2.bora.net 940353876 203.252.3.11 (Wed, 20 Oct 1999 02:24:36 KST) NNTP-Posting-Date: Wed, 20 Oct 1999 02:24:36 KST Organization: Dacom To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 : int : main(int argc, char **argv) : { : fprintf(stdout,"Content-Type: text/html\n\n"); : fprintf(stdout," \n" : "

Blah blah blah

\n" : " "); : return 0; : }