This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gcc-compiled CGI + Windoze Apache = Error 500


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]