delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/22/14:40:25

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP & CGI
Date: Wed, 22 Mar 2000 13:26:56 -0500
Organization: Nortel Networks
Lines: 18
Message-ID: <38D91070.1F11C83A@americasm01.nt.com>
References: <38D7C78E DOT 2708CFD1 AT pgmincorporated DOT com> <38D7E7D1 DOT D14B432F AT bigfoot DOT com> <3L7C4.1782$AU DOT 144773 AT weber DOT videotron DOT net>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.72C-CCK-MCD [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Martin Peach wrote:

> Richard Dawe <richdawe AT bigfoot DOT com> wrote in message
> news:38D7E7D1 DOT D14B432F AT bigfoot DOT com...
> > Shouldn't that be:
> >
> > printf("Content-Type: text/html\n\n");
> Shouldn't that be printf("Content-Type: text/html\r\n");
> You are supposed to put the CRLF pair at the end of html lines...

Well, most browsers/servers don't care, but DJGPP converts '\n' into
'\r\n' anyways.  Unless you have stdout opened in binary mode.

--
(\/) Rolf Campbell (\/)



- Raw text -


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