> From: Keith C. Ivey [mailto:[EMAIL PROTECTED]
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> > In the real world, RFC compliance must be tempered with 
> useragent support.
> > RFC 1738 specifically says that + is to be treated as an 
> unreserved boring
> > unspecial alphanumeric, but 99% of useragents will treat it as an
> > alternative for %20 in a querystring (that is, as an 
> encoding for " ").
> 
> You're of course right about the necessity of mimicking the 
> behavior of common user agents, regardless of what RFCs say.
> But I'm a little confused about how user agents would be 
> involved in interpreting a query string, which seems to be an 
> exclusively server-side activity.  They do construct query 
> strings, when forms are submitted by the "GET" method.  Are you 
> saying some user agents use "+" for spaces in that case?

Yes exactly
Create a simple HTML file:
<form action="test.html" method="get">
<input type="text" name="test" value="a b c" /> <input type="submit" />
</form>

load it up in your browser of choice and hit Submit
Odds are very very good that the user agent will take you to
.../test.html?test=a+b+c
rather than I would have thought would be the correct (per cited RFCs)
.../test.html?test=a%20b%20c

(tested in IE 6 and Mozilla Firefox 0.8)

[EMAIL PROTECTED]                805.964.4554 x902
Hispanic Business Inc./HireDiversity.com   Software Engineer
perl -e"print join er,reverse',','l hack',' P','Just anoth'"

Reply via email to