Andrew Thompson wrote:
Quote:
OTOH, those paths look decidedly wrong.
Here is an example URL for a file on the D: drive
of my local system.
>
file:/D:/projects/TellURL.java
>
Actually the url's were correct and yours is wrong :-)
From RFC 1738 (Uniform Resource Locators) section 3.10:
3.10 FILES
The file URL scheme is used to designate files accessible on a
particular host computer. This scheme, unlike most other URL schemes,
does not designate a resource that is universally accessible over the
Internet.
A file URL takes the form:
file://<host>/<path>
where <hostis the fully qualified domain name of the system on
which the <pathis accessible, and <pathis a hierarchical
directory path of the form <directory>/<directory>/.../<name>.
For example, a VMS file
DISK$USER:[MY.NOTES]NOTE123456.TXT
might become
<URL:file://vms.host.edu/disk$user/my/notes/note12345.txt>
As a special case, <hostcan be the string "localhost" or the empty
string; this is interpreted as `the machine from which the URL is
being interpreted'.
The file URL scheme is unusual in that it does not specify an
Internet protocol or access method for such files; as such, its
utility in network protocols between hosts is limited.