Message-ID: <38010A1D.BCF60B35@null.videotron.ca> From: bub X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Question regarding CGI Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 Date: Sun, 10 Oct 1999 17:50:21 -0400 NNTP-Posting-Host: 24.200.83.106 X-Complaints-To: abuse AT videotron DOT net X-Trace: weber.videotron.net 939591994 24.200.83.106 (Sun, 10 Oct 1999 17:46:34 EDT) NNTP-Posting-Date: Sun, 10 Oct 1999 17:46:34 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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; }