[REBOL] Re: Simple cgi problem/w2k
From: tim:johnsons-web at: 2-Jan-2002 13:40
* Andrew Martin <[Al--Bri--xtra--co--nz]> [020102 13:33]:
> Louis wrote:
> > print "Content-Type: text/html^/^/"
> There only needs to be one "^/" at the end. But that's only a minor problem.
> I think your problem is here:
Yes. 'print inserts one newline automatically.
When I was running CGI scripts on PWS/Win98, I wasn't modifying
my "pound-bang" line (it was configured for Linux remote server).
I don't think that PWS cared.
My suggestion is to first make this as simple as possible:
print "Content-Type: text/html^/^/"
print "HELLO FROM CGI"
eliminate all other code, no matter how trivial it may
Do you have access to error logs? Can't remember if there are
any on Windows.
And I presume that you have tested this code directly from
the command line.
Also, where are you running the script from ... what folder?
Have you tested some like http://localhost to confirm that
PWS is actually working?
> > #!c:/rebol/rebol --cgi --script
> I believe using "/" is for Unix style scripts. Try using "\" instead.
> I hope that helps!
> Andrew Martin
> ICQ: 26227169 http://valley.150m.com/
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
Tim Johnson <[tim--johnsons-web--com]>