www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/21/19:50:31

Date: Wed, 22 Mar 2000 06:17:42 +0500
Message-Id: <200003220117.GAA00840@midpec.com>
From: Prashant TR <tr AT midpec DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <38D7E7D1.D14B432F@bigfoot.com> (message from Richard Dawe on
Tue, 21 Mar 2000 21:21:21 +0000)
Subject: Re: DJGPP & CGI
References: <38D7C78E DOT 2708CFD1 AT pgmincorporated DOT com> <38D7E7D1 DOT D14B432F AT bigfoot DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Richard Dawe <richdawe AT bigfoot DOT com> proclaimed:

> Damon Hogan wrote:
> > Use that to compile the test.c cgi program attached.  So GCC  Mingw32
> > (Win32) CGI works fine.
> [Snip]
> > #include <stdio.h>
> > #include <stdlib.h>
> > 
> > int main(void)
> > {
> > char hello[1000];
> > 
> > printf("Content-type: text/html\n\n");
> 
> Shouldn't that be:
> 
> printf("Content-Type: text/html\n\n");

No. Not necessarily. I use "Content-type: text/html" in Perl
and it works fine.

> I thought the header fields were case-sensitive?

They're actually case-insensitive.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019