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

[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: try print "Content-Type: text/html^/^/" print "HELLO FROM CGI" eliminate all other code, no matter how trivial it may seem. 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? HTH tim
> > #!c:/rebol/rebol --cgi --script > > I believe using "/" is for Unix style scripts. Try using "\" instead. > > I hope that helps! > > Andrew Martin > ICQ: 26227169 > -><- > > -- > 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]>