[REBOL] Simple cgi problem
From: louisaturk::coxinet::net at: 2-Jan-2002 2:50
Happy New Years everybody!
How would you like to start the year off with a nice easy (I hope) to solve
problem? Just what you needed, right? I am trying to learn how to use cgi
scripts. Here is my script:
#!/www/rebol/rebol.exe --cgi --script
rebol []
print {Content-Type: text/html^/^/}
x: 5 * 8
print x
print {Hi Everybody!}
If I do this script from the rebol command line, it prints:
Content-Type: text/html
40
Hi Everybody!
>>
So, I assume that the script is able to find the rebol interpreter.
But if I load it into a browser it tries to download the file. Why doesn't
it run the script?
Louis