On Tue, Nov 9, 2010 at 12:39 PM, scouic wrote:
> 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 `/' cha
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 - -
You may want to check out the documentation here:
http://docs.racket-lang.org/guide/scripts.html?q=script
which discusses running Racket in scripts. Also, as suggested by other
people, you should try running this from the command line first.
Thanks,
-Everett
On 11/09/2010 10:09 AM, Sam Ph
On Mon, Nov 8, 2010 at 9:37 PM, scouic wrote:
> What's wrong here ? Must i write #lang racket at the top, must i change
> mzscheme.exe with gracket.exe ... ?
> I don't really understand why i've an apache internal server error ...
> ps : in my apache httpd.conf i've the line > AddHandler cgi-scrip
Does this script work from the command line? If not, it certainly
won't work from the web server. If it does work from the cmd line that
will get us some way to debugging it.
N.
On Tue, Nov 9, 2010 at 5:37 AM, scouic wrote:
> test.cgi :
> #!c:\Program Files (x86)\DrRacket\mzscheme.exe
> (display
Hi all, i've just understood the CGI way-of-life (yes, i'm happy)
First, i have a perl super-easy script (file saved as test.cgi) who prints
"hello", this is it
#!c:\Strawberry\perl\bin\perl.exe
print "Content-type: text/plain; charset=iso-8859-1\n\n";
print "hello";
It works perfectly,, when i'm
6 matches
Mail list logo