File URI scheme

File URI scheme

The file: URL is a URL schema specified in RFC 1630 and RFC 1738, typically used to retrieve files from within one's own computer. A file: URL takes the form of file://"host"/"path"where "host" is the fully qualified domain name of the system on which the "path" is accessible, and "path" is a hierarchical directory path of the form "directory"/"directory"/.../"name". If "host" is omitted, it is taken to be "localhost".

file: URLs are rarely used in Web pages on the Internet, since they make the assumption that such a file exists on the client's computer. The "host" specifier can be used to retrieve a file from an external source, although no specific file-retrieval protocol is specified; and using it should result in a message that informs the user that no mechanism to access that machine is available.

On MS Windows systems, the normal colon (:) after a device letter has sometimes been replaced by a vertical bar (|) in file URLs. For example, to refer to file FOO.BAR in the top level directory of the C disk, the URL file:///C|/FOO.BAR was used. This reflected the original URL syntax, which made the colon a reserved character in a path part. For network shares, add an additional two slashes. For example, \hostsharedirfile.txt, becomes file:////host/share/dir/file.txt.

Mozilla browsers refuse to follow file: links on a page that it has fetched with the HTTP protocol, so that the page's own URL is an http: URL. When you click on such a link, nothing happens. The purpose is presumably security: to prevent a remote page from executing a program on the visitor's computer. The file: links work on Mozilla on pages that are local files on the user's disk. Mozilla browsers can be configured to override this security restriction as detailed in [http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don't_Work Mozillazine's "Links to Local Pages Don't Work"] .

Mozilla browsers also treat file: URLs similarly to the Gopher protocol in the way a directory is represented textually (i.e. the source) and graphically.

Internet Explorer browsers, prior to version 7, will attempt to access file: URLs even if they reside on pages fetched over HTTP.

The original web browser, WorldWideWeb, provided editing of resources in file: space [http://www.w3.org/People/Berners-Lee/WorldWideWeb.html] . No modern browsers replicate this ability.

External links

* [http://www.cs.tut.fi/~jkorpela/fileurl.html File URLs]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • URI scheme — In the field of computer networking, a URI scheme is the top level of the Uniform Resource Identifier (URI) naming structure. All URIs and absolute URI references are formed with a scheme name, followed by a colon character ( : ), and the… …   Wikipedia

  • Data URI scheme — The data URI scheme is a URI scheme (Uniform Resource Identifier scheme) that provides a way to include data in line in web pages as if they were external resources. It tends to be simpler than other inclusion methods, such as MIME with cid or… …   Wikipedia

  • Magnet URI scheme — Magnet icon The magnet: URI scheme is a draft open standard defining a URI scheme for magnet links, which are mainly used to reference resources available for download via peer to peer networks. Such a link typically identifies a file not by… …   Wikipedia

  • about URI scheme — about:blank redirects here. For the spyware variant aboutblank , see CoolWebSearch#Variants. About: redirects here. For other uses, see about; for the Wikipedia about page, see Wikipedia:about. about is an internal URI scheme (also known as a URL …   Wikipedia

  • Data URI scheme — Le Data URI scheme est un Schéma d URI, dans le contexte d Internet, qui contient directement des données. L IETF décrit ce schéma dans le RFC 2397[1]. Le schéma est le suivant : data:[<mediatype>][;base64],<data> Un… …   Wikipédia en Français

  • File — has several meanings:* Filing cabinet * File (tool) * A nail file * Filing (legal) * Filing (manufacturing process) * File (formation) Military term for a single column of men one in front of the other. See also Rank (formation) * File (chess) *… …   Wikipedia

  • Ed2k URI scheme — In computing, ed2k links are hyperlinks used to denote files stored within the eDonkey P2P network. Many programs, such as eDonkey2000, eMule, Hybrid, MLDonkey, and others using the eDonkey file sharing protocol, may be used to manage files… …   Wikipedia

  • Schéma d'URI — En informatique, un schéma d’URI est le premier niveau de la structure de nommage des identifiants uniformes de ressources (URI). Toutes les URIs sont construites à partir d’un nom de schéma, suivi de deux points (« : ») puis du reste… …   Wikipédia en Français

  • File manager — For the Windows 3.x file manager, see File Manager (Windows). A file manager or file browser is a computer program that provides a user interface to work with file systems. The most common operations performed on files or groups of files are:… …   Wikipedia

  • Tag URI — Les Tag URI sont conçues pour être uniques dans le temps et l’espace tout en étant utilisées par les humains[1]. Elles sont distinctes des autres URI, car elles ne comportent aucun mécanisme d’autorité de résolution. Un tag peut être utilisé… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”