in reply to Re: syntax for URI of files?
in thread syntax for URI of files?

Mozilla is showing three slashes before the drive letter, meaning a leading slash before the drive letter. Hmm, and it's showing the colon as-is! IOW, file:///C:/foo.txt.

So, if | is used for :, what's the meaning of : within a URI? I know it's used to separate the original service name from the rest, but don't recall any special meaning on the right side. Is that true for all colons in a file name (on systems where that is a legal part of a name, or has a special meaning to the file system)?

And what do you do about |'s in the name that were there to begin with?

—John

Replies are listed 'Best First'.
Re: Re: Re: syntax for URI of files?
by hardburn (Abbot) on Mar 06, 2003 at 16:20 UTC

    So, if | is used for :, what's the meaning of : within a URI? I know it's used to separate the original service name from the rest, but don't recall any special meaning on the right side.

    I don't think it has a special meaning, but it's a reserved character for the entire URI. And yes, many browsers will let you get away with using ':' instead of '|'.

    And what do you do about |'s in the name that were there to begin with?

    You beat up the person who named a file with a '|' (:

    ----
    Reinvent a rounder wheel.

    Note: All code is untested, unless otherwise stated

Re: Re: Re: syntax for URI of files?
by Thelonius (Priest) on Mar 06, 2003 at 16:30 UTC
    The reason there are three slashes is that there is an optional host name that comes between the second and third slash: e.g. file://novell01/departmentshare/me/myfile.txt