Hi Ryan:
        First let me thank you for sending the page on installing
rebol.

Just so you know, I ran one of my rebol cgi scripts from 
my machine, using your query-string, and I got a valid
response from my browser. 
I observed that got similar error
messages from my browser when I attempted your URL.

What's more - I got the same error message when I attempted
your URL without the query-string

That might suggest another problem with the script other than
the query string.

I must admit, that although I do a lot of CGI programming, I
have never used the query-string approach, neither as method="POST"
as as a hypertext link. So I am limited from commenting much
in that area.

If you choose the path-info approach here is a function used to 
parse path-info.

Do note the preceding func dbg that presumes a port open to a
debug file:

;=============================================================================
  dbg: func[arg][append DebugPort arg append DebugPort newline]

;=============================================================================
  ParsePathInfo: func [str /local slash blk non-slash]
  [
    either equal? str none [dbg "No Path Info"]
    [
      slash: charset "/"
      non-slash: complement slash
      blk: copy []
      parse/all str [some [copy txt some non-slash (insert tail blk txt) |
slash]]
      NumPathParts: length? blk
      return blk
    ]
  ]

I hope this can be of some help to you.
-Tim
At 08:59 AM 7/15/00 -0500, you wrote:
>I'm testing my CGI at http://www.beosjournal.com/test.shtml
>
>The portion I'm testing is the commenting system
>
>When I click on the link to comments, I am told the browser is unable to
load 
>the page. I have the <HTML> tags set to print OK and the Content-Type line 
>is OK. The shebang is OK, as well. My question is, is there something 
>wrong with the way I have the hyperlink rendered? as follows...
>
>http://www.beosjournal.com/cgi-bin/displaycomments.cgi?comments-
>reference=20000715121834
>
>Is it ok to have words with hyphens in CGI as in "comments-reference" ?
>
>
>Also, does REBOL understand the word "comments-reference" as having the
value "20000715121634" or do I have to do the following:
>
>cgi-input: make object! decode-cgi system/options/cgi/query-string
>
>and then call "comments-reference" using cgi-input/comments-reference  ?
>
>
>Thanks
>
>-Ryan
>
>

Reply via email to