| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 11 Oct 1999 16:24:30 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | "S. M. Halloran" <mitch AT duzen DOT com DOT tr> |
| cc: | bub <bub AT null DOT videotron DOT ca>, djgpp AT delorie DOT com |
| Subject: | Re: Question regarding CGI |
| In-Reply-To: | <199910110416.HAA05344@ankara.Foo.COM> |
| Message-ID: | <Pine.SUN.3.91.991011162308.29606C-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Mon, 11 Oct 1999, S. M. Halloran wrote: > > fprintf(stdout,"Content-Type: text/html\n\n"); > ^^^^^ > Try this: "Content-Type: text/html\r\n\r\n" I don't think this is required. DJGPP by default uses text-mode output, under which each \n gets converted to the \r\n pair. > The Visual C++ compiler may be translating the '\n' as '\r\n' for you. DJGPP does the same, for compatibility reasons.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |