According to Budd, S.:
> Just a bit of clutter.  The standard reference for this problem is
> 
>  http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2
> 

Thanks.  That does make it clear that &foo; entities can be used in
URIs, like it or not.  It also seems to be referring only to URIs used
in anchors in HTML.  I don't think they're suggesting changing the CGI
interface standard.

What this means, from a CGI implementation perspective, is that you need
to support BOTH.  Their quest to remove any supposed ambiguity arising
from naked ampersands in HTML really does nothing to remove the ambiguity
in CGI scripts.  So, I think we need to recognize all of these forms:

?x=1&y=2                - standard CGI data from GET or POST of form
?x=1&y=2            - URI in anchor-style link
?x=1&y=2            - URI in anchor-style link (alternate form)

If I'm not mistaken, however, the %38 form is used to embed an ampersand
into a CGI variable, so we don't parse it as a variable separator:

?x=a%38b

Is that right?

They also recommend using ";" as an alternate separator, so we should
also handle

?x=1;y=2

and use this in Display::createURL(), if we're to follow their
recommendations.  Does anyone see a problem with using a semicolon in
this manner?

This reference doesn't say anything about using "|", though I've seen
implementations that do.  This isn't an option for us, though, as some
input parameters use this as a separator.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to