[racket] CGI headers

From: scouic (scouic at gmail.com)
Date: Tue Nov 9 15:39:43 EST 2010

Hey,

with the command line mzscheme it works, so i don't know where is the
problem :
actually, try.cgi is this one :
#!c:/Racket/mzscheme.exe
(display "HTTP/1.1 200 OK \r\n")
(display "Content-type: text/plain; charset=iso-8859-1 \n\n")
(display "hello")

The apache access log says :
127.0.0.1 - - [09/Nov/2010:21:23:22 +0100] "GET /cgi-bin/try.cgi HTTP/1.1"
500 535
> This is the 500 internal server error
and the error log :
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1] Premature end of
script headers: try.cgi
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1] try.cgi:1:0: read:
expected only alphanumeric, `-', `+', `_', or `/' characters for `#!', found
:
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1]
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1]  === context ===
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1]
standard-module-name-resolver
[Tue Nov 09 21:26:09 2010] [error] [client 127.0.0.1]

The problem seems to be the "standard-module-name-resolver", but it's the
same thing with or without the #lang racket first line ..

If you have a brillant idea for correctly running the racket cgi scripts,
you're welcome =)

Thanks,
-mw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101109/bd574c02/attachment.html>

Posted on the users mailing list.