I know that %20 and + both decode to the same binary value (a space), and for most webservers, especially those that map to physical files they will point to the same resource.
But my question is, must a url like http://www.example.org/hello%20world point to the same resource as http://www.example.org/hello+world, are they canonically the same?
In HTTP/1.0 + didn’t map to a space, so I’m specifically asking about HTTP/1.1.
Only within the query string: the plus sign is a reserved character, so must be encoded to pass an actual ‘+’ in either the path or the query string. It’s use as a substitute for spaces is a W3C Recommendation which only applies to the query string:
URI Comparison (RFC 2616):
Reserved characters (RFC 2396)
So, on the third go-around: there is nothing official that declares them to be the same thing. Using ‘+’ literally to direct
http://example.org/hello+worldto a directory calledhello+worldis incorrect, but there’s nothing that says it should instead be considered equivalent to a space.