delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: gcc-compiled CGI + Windoze Apache = Error 500 |
Date: | Mon, 3 Apr 2006 00:19:01 +0100 |
Message-ID: | <017b01c656ab$d36907b0$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20060401T185645-466@post.gmane.org> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 01 April 2006 18:03, cshepard wrote: > I compile the following code thusly: gcc -o hw.cgi hw.c > > #include <stdio.h> > int main(void) { > printf("Content-type: text/html\n\n"); > printf("HW"); > exit(0); > } Gets you two genuine \ns. > #!c:/Python24/python.exe The 'doze native version. > print "Content-type: text/html\n\n" Gets you two CRLFs. Which is what the HTTP spec requires. That's guesswork on my part, I don't have an apache install myself. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |