[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: URI encoding URLs on the cmdline?

From: Jim Correia <jim.correia_at_pobox.com>
Date: 2004-06-06 14:56:45 CEST

On Jun 6, 2004, at 1:40 AM, Greg Hudson wrote:

> On Sat, 2004-06-05 at 23:51, Jim Correia wrote:
>>> How hard is it to explain "you can use any character you want in a
>>> URI
>>> on the command line except for '%'"?
>
>> The rule would have to be more strict than that - it would be an URI
>> reserved character. Unless you are the author of the URL you can't say
>> for certain whether the URI reserved char is being used for its
>> reserved purpose, or needs to be escaped.
>
> Please elaborate. I can't understand this argument, partially because
> of an unclear antecedent in the first sentence ("it" in "it would be an
> URI reserved character").

The rule would have to be more strict than "you can use any character
you want in a URI
on the command line except for '%'". The rule would have to apply to
all URI reserved characters, not just % since there is no way to know
whether the author of the URI intended for the character to be escaped
or not. In fact RFC 2396 says that one needs to consider URIs always
escaped (2.4.2) for this very reason.

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 6 14:57:21 2004

This is an archived mail posted to the Subversion Dev mailing list.