W3C home > Mailing lists > Public > uri@w3.org > May 2004

representing UNC as a URI

From: Pascal Buhler <pbuhler@trolltech.com>
Date: Tue, 11 May 2004 10:56:38 +0200
Message-ID: <003601c43735$df2b0770$c025e850@arsia>
To: <uri@w3.org>


I am trying to find the best way to represent a windows
share UNC as a file:// URI  and am not having much luck
finding a definite example on the net so I hope here is a
good place to ask.

If I have a windows share called //myshare/mydir

then in windows explorer typing both of these in to the
address bar resolves to the correct location


but the path segment of these is different and the
file://myshare/mydir is only valid with regard to computers
that are in the same windows domain.

also if I use  file:////myshare/mydir then the current rfc
tells me that if there is no authority then //authority can
be removed with would leave with  file://myshare/mydir witch
is not the same URI.

Also the ABNF has the rule
path-abs        ; begins with "/" but not "//"
witch I guess should prevent the above from happening.

I am guessing the answer should be that //myshare/mydir
should be considered a path-abempty and so I should use
file:////myshare/mydir and don't remove // empty authority
if the path starts with // when writing out the complete URI

Is this correct?


Received on Tuesday, 11 May 2004 05:12:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:07 UTC