newbie help
[1/4] from: txiki:hotm:ail at: 20-Sep-2000 13:30
Hi. I'm using Rebol on a website and am trying to print something to a page
that processes a form and sends a couple emails, with
print "Location: http://bla"
but all I get is a white screen with REBOL printed there. Can someone help?
Thanks,
[txiki--hotmail--com]
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
[2/4] from: rebol:techscribe at: 20-Sep-2000 15:09
Hi txiki,
I assume that your script is running as a CGI script. I don't know what
you're doing right, so here is a minimal set of rules:
1. If you're website is unix (linux) based, and/or you're running Apache as
a webserver (even on MS Windows), then your first line must contain the
bang character followed by the complete path to REBOL. Example:
#!/usr/bin/rebol -cs
REBOL []
2. Before you print some content you must first indicate the content type
followed by two newlines. Example:
print [
"Content-Type: text/html^/^/"
<HTML>
<HEAD>
<TITLE>
"Example"
</TITLE>
</HEAD>
<BODY>
"Location: http://bla"
</BODY>
</HTML>
]
This should work.
Hope this helps
At 01:30 PM 9/20/00 +0000, you wrote:
>Hi. I'm using Rebol on a website and am trying to print something to a page
>that processes a form and sends a couple emails, with
<<quoted lines omitted: 6>>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
;- Elan [ : - ) ]
author of REBOL: THE OFFICIAL GUIDE
REBOL Press: The Official Source for REBOL Books
http://www.REBOLpress.com
visit me at http://www.TechScribe.com
[3/4] from: txiki::hotmail at: 21-Sep-2000 12:54
>I assume that your script is running as a CGI script. I don't know what
>you're doing right, so here is a minimal set of rules:
>
I'm doing these things. I get this as the source for the resulting page in
my webbrowser:
REBOL <options> <script> <arguments>
All fields are optional. Supported options are:
--cgi (-c) Check for CGI input
--do expr Evaluate expression
--help (-?) Display this usage information
--nowindow (-w) Do not open a window
--quiet (-q) Don't print banners
--script file Explicitly specify script
--secure level Set security level:
(none write read throw quit)
-s Shortcut: no security
+s Shortcut: full security
--trace (-t) Enable trace mode
Examples:
REBOL script.r
REBOL script.r 10:30 [test--domain--dom]
REBOL script.r -do "verbose: true"
REBOL --cgi -s
REBOL --cgi -secure throw --script cgi.r "debug: true"
REBOL --secure none
Content-type: text/html
** User Error: Server error: tcp 550 Addressee unknown.
** Where: insert port reduce data
This give you any more clues?
Thanks,
[txiki--hotmail--com]
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
[4/4] from: rebol:techscribe at: 21-Sep-2000 16:09
Hi txiki,
could you include
1. The exact bang line you use (copied from your REBOL script file and
pasted into the email)?
2. Which OS is the server running on?
3. Which server are you using?
;- Elan [ : - ) ]
author of REBOL: THE OFFICIAL GUIDE
REBOL Press: The Official Source for REBOL Books
http://www.REBOLpress.com
visit me at http://www.TechScribe.com
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted