The VRML '?' syntax

Chris Marrin ([email protected])
Thu, 11 May 1995 18:39:40 -0700


This is a word of warning to any of you out there writing cgi-bin scripts
to handle the map=POINT feature of the WWWAnchor. (n.b. - This is the
feature that causes the browser to append a string of the form "?x,y,z" to
the URL in the anchor). This sends the object space location of the point
clicked to (presumably) the cgi-bin script specified in the URL.

The problem with this is that the comma character is special to Netscape
and possibly to other browsers so in WebSpace I am escaping this
character. The string actually looks like this: "?x%2cy%2cz". This is the
standard cgi-bin escaping mechanism.

The odd thing to me is that the netsite server, for example, sets the
QUERY_STRING variable to the raw string, but it sets argv to x,y,z. In
other words the server decodes argv but not QUERY_STRING. The cgi-bin
spec says you must decode strings before using them so this should not
cause a problem. But I can imagine cgi-bin writers failing to do this,
trying to decipher QUERY_STRING without the decoding.

How are others implementing this feature? Are other browsers having this
problem?

-- 
chris marrin      Silicon      http://www.sgi.com/Products/WebFORCE/WebSpace
(415) 390-5367    Graphics  ," http://reality.sgi.com/employees/cmarrin/
[email protected]   Inc.    b`    ,                             ,,.
                        mP     b"                            , 1$'
        ,.`           ,b`    ,`                              :$$' 
     ,|`             mP    ,`                                             ,mm
   ,b"              b"   ,`                ,mm      m$$    ,m          ,,`P$$
  m$`             ,b`  .` ,mm          ,.`'|$P   ,|"1$`  ,b$P       ,,`   :$1
 b$`             ,$: :,`` |$$       ,:`    $$` ,|` ,$$,,`"$$      .`      :$|
b$|            _m$`,:`    :$1    ,:`      ,$Pm|`    `    :$$,..;"'        |$:
P$b,      _;b$$b$1"       |$$ ,,``       ,$$"             ``'             $$
 ```"```'"    `"`         `""`           ""`                             ,P`
"As a general rule, don't solve puzzles that open portals to Hell."-...-'
		   - excerpt from "A Horror Movie Character's Survival Guide"