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

[REBOL] Troubles in CGI land

From: stevej::sieve::net at: 25-Apr-2001 0:40

Hi fellow REBOL nerds, I downloaded the newest REBOL/View yesterday and have been playing around with it again but I'm having a problem with a simple CGI script. Inside of my cgi-bin, I have a script called test.r, which is the following: -------------------------------------- #!/usr/local/rebol/rebol -cs print "Content-Type: text/plain" print "" ; print "Hello!" send [stevej--sieve--net] decode-cgi input --------------------------------------- The permissions are 755 (rwxr-xr-x), other cgi's run out of this directory just fine, and I'm able to use rebol from the command-line with no problem, with the rebol executable referenced above. Unfortunately, when I call this CGI from a webbrowser, it starts a download (I assume because of a lack of a Content-Type header) of the following text: {** Near: size: size-text self all [ para para/origin size: size + para/origin para/margin size: size + para/margin ] ... (funky escape characters) (you can see this for yourself at What is this? When I run that single line from within the REBOL/View environment, it works fine. I'm baffled. There's nothing in my apache error logs, and no obvious sign of problems. I'm too new to the langauge to really diagnose it farther so I'd like to call on you kids for some help. BTW my prefs.r in /usr/local/rebol are such: REBOL [Title: "User Preferences" Date: 24-Apr-2001/2:34:51-7:00 ] name: "steve jenson" pass: none express: "none" server: "localhost" script: "none" proxy-user: none proxy-pass: none root: none poll-time: none connect-wait: none log: true debug: false window-size: none window-offset: 689x529 icon-offset: none keymap: none auto-connect: true always-close: true desktop: false skin: none I'm running Linux 2.2.16 and apache 1.3.19. The REBOL/View in question is: REBOL/View/Pro 17-Apr-2001 Thanks for any help, steve -- steve jenson <[stevej--sieve--net]> PGP fingerprint: 79D0 4836 11E4 A43A 0179 FC97 3AE2 008E 1E57 6138