<div><div>Hi all, i've just understood the CGI way-of-life (yes, i'm happy)</div><div><br></div><div>First, i have a perl super-easy script (file saved as test.cgi) who prints "hello", this is it </div><div>
#!c:\Strawberry\perl\bin\perl.exe</div><div>print "Content-type: text/plain; charset=iso-8859-1\n\n";</div><div>print "hello";</div><div><br></div><div>It works perfectly,, when i'm connecting at <a href="http://127.0.0.1/cgi-bin/test.cgi">127.0.0.1/cgi-bin/test.cgi</a> i have a webpage with "hello".</div>
<div><br></div><div>Now, i want to do the same thing in racket ... i have a 500 internal serve error, maybe because the script isn't good : this is my script, saved as test.cgi :</div><div>#!c:\Program Files (x86)\DrRacket\mzscheme.exe</div>
<div><br></div><div>(display "Content-type: text/plain; charset=iso-8859-1\n\n")</div><div>(display "hello")</div><div><br></div><div>##(require net/cgi)</div><div>##(generate-html-output "title" (list "content"))</div>
<div><br></div><div>What's wrong here ? Must i write #lang racket at the top, must i change mzscheme.exe with gracket.exe ... ?</div><div>I don't really understand why i've an apache internal server error ... </div>
<div><br></div><div>ps : in my apache httpd.conf i've the line > AddHandler cgi-script .cgi .pl .rkt .ss</div><div><br></div><div>Thanks for your help,</div><div>-mw</div></div>