[REBOL] cgi script not working with newest Rebol core
From: marj:msi at: 30-Nov-2000 11:32
I just downloaded the latest experimental Rebol core for SGI (yesterday),
and a Rebol cgi script that used to work is now giving a 500 Server Error
message about malformed header from script.
The script works fine if I run it from the command line. All my other
scripts (which run as cron jobs) run fine. I'm using an SGI Indigo 2/R4k,
IRIX 6.2. (and can't run the non-experimental SGI version of Rebol core at
all, but that's another story).
The script sits within a directory, is named index.cgi, and clicking an
href to that directory runs the script to list certain files in the
directory -- or at least it used to! :-)
The relevant parts of the script look like:
REBOL [ yaddayadda... ]
cgi-head: [ "Content-type: text/html" newline newline ]
I also tested this script:
#! /usr/people/marj/rebolStuff/rebol -csq
print "Content-Type: text/plain"
Doesn't work either - same error message.
I have read the networking chapter and tried a few variations of the first
line (--cgi, -cs, -csq, etc), and I haven't hacked the server or anything
else on the SGI since when the cgi script was running with the previous
experimental rebol core version. I'm running the NCSA/1.5.2a httpd server
on port 8080.
Can anybody help?
Marjorie A. Tiefert
Principal Scientific Writer & Documentation Website Manager
Life Sciences Information Design
Molecular Simiulations Inc (http://www.msi.com/)