Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Rebol as CGI on Iplanet Enterprise NT 4

 [1/5] from: cshelley::aao::org at: 23-Apr-2001 15:40


Greetings, I have set Rebol up on a number of platforms without a hitch, now this! Rebol is installed and config'ed correctly. File association is made. Rebol fires and completes script execution properly. Can write to file etc etc. But in no way can I get it to write back to the web server to send out to the client. The error is always: failure (302): for host trying to GET /cgi-bin/cgitest.r, cgi-parse-output reports: the CGI program c:\Rebol\rebol.exe did not produce a valid header (program terminated without a valid CGI header) Any ideas would be much appreciated. TIA, Christopher -- Christopher Shelley Senior Technologist -- The American Academy of Ophthalmology The Eye M.D. Association http://www.aao.org

 [2/5] from: gjones05:mail:orion at: 23-Apr-2001 19:25


From: "Christopher"
> Greetings, > I have set Rebol up on a number of platforms without a hitch, now this!
<<quoted lines omitted: 9>>
> TIA, > Christopher
Hi, Christopher, Is the REBOL script sending out the following line before any other html? print "Content-Type: text/html^/" If so, then it would be helpful to see a short example script that reproduces the error, and to know a smidge more about the platform (presumably some Windows version) and server software. Hope this helps. --Scott Jones

 [3/5] from: cshelley:aao at: 23-Apr-2001 17:37


Hi, iPlanet Enterprise 4.1 on Windows NT 4.0 sp 6 The little test snip is #!c:/Rebol/rebol -cs REBOL [ Title: "CGI Test" ] print "Content-type: text/plain^/" print "Hello World!" Of course the first line is not necessary in the Win NT world as the program association is handled elsewhere. The system will run other scripts which do not write directly to std out. I.e., if I call a routine which just appends some info to the end of a file and quits. That will work okey, so at least we know that Rebol is running etc etc. The program association is for a .r file type then run with c:\Rebol\rebol.exe -cs %s (or %1) either will work. Looking forward to additional insight. Thanks for your time. Christopher

 [4/5] from: gjones05:mail:orion at: 23-Apr-2001 21:45


From: "Christopher"
> Hi, > > iPlanet Enterprise 4.1 on Windows NT 4.0 sp 6
Sorry, I didn't notice that you had put this info in the subject.
> The little test snip is > #!c:/Rebol/rebol -cs > REBOL [ Title: "CGI Test" ] > print "Content-type: text/plain^/" > print "Hello World!" > > Of course the first line is not necessary in the Win NT world as the
program
> association is handled elsewhere. > The system will run other scripts which do not write directly to std out. > I.e., if I call a routine which just appends some info to the end of a
file
> and quits. > That will work okey, so at least we know that Rebol is running etc etc.
<<quoted lines omitted: 3>>
> Thanks for your time. > Christopher
It looks fine to me. I am not familiar with iPlanet. Nothing more I can offer. Sorry. --Scott Jones

 [5/5] from: kracik:mbox:dkm:cz at: 24-Apr-2001 9:26


Christopher wrote:
> Hi, > iPlanet Enterprise 4.1 on Windows NT 4.0 sp 6
<<quoted lines omitted: 11>>
> The program association is for a .r file type then run with > c:\Rebol\rebol.exe -cs %s (or %1) either will work.
^^^^^^ Hi, I think the command line should be C:\Rebol\rebol.exe -cs %s %s ^^^^^^^^^ I don't know about iPlanet, but it must be so in IIS 4 and 5. HTH, Michal Kracik

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted