From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP & CGI Date: Tue, 21 Mar 2000 21:21:21 +0000 Organization: Customer of Planet Online Lines: 39 Message-ID: <38D7E7D1.D14B432F@bigfoot.com> References: <38D7C78E DOT 2708CFD1 AT pgmincorporated DOT com> NNTP-Posting-Host: modem-17.angainor.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.svr.pol.co.uk 953673844 7614 62.136.110.145 (21 Mar 2000 21:24:04 GMT) NNTP-Posting-Date: 21 Mar 2000 21:24:04 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. Damon Hogan wrote: > Use that to compile the test.c cgi program attached. So GCC Mingw32 > (Win32) CGI works fine. [Snip] > #include > #include > > int main(void) > { > char hello[1000]; > > printf("Content-type: text/html\n\n"); Shouldn't that be: printf("Content-Type: text/html\n\n"); I thought the header fields were case-sensitive? > printf("\n\nTesting!\n\n"); > scanf("%s",hello); Where is the user input going to come from? From the client, who is waiting for your reply to the GET request? > printf("%s\n",hello); > printf("%s\n",getenv("QUERY_STRING")); > } I think you should also print some HTML or change the content type to text/plain. Bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/