August 27
URL (Uniform Resource Locator) del file protocollo è lo schema del browser standard registrato presso l'IANA (Internet assegnazione Numbers Authority) per accedere ai file su un computer locale.
Il protocollo consiste di una stringa nota come URI (Uniform Resource Identifier) che identifica la posizione di una risorsa locale. RFC (Request for Comments) da parte della Ieft (Internet Engineering Task Force) forniscono le specifiche.
L'URL deve iniziare con "file: //" seguito o dal nome host del computer locale, "localhost" o vuoto. Per il file in "/home/usr/index.html" in un computer denominato "myhost", i seguenti sono accettabili:
File: //myhost/home/usr/hello.html
File: //localhost/home/usr/hello.html
File: //home/usr/hello.html
Se viene fornito un percorso assoluto, il nome host può essere omessa. Ad esempio, il file: /home/usr/hello.html.
Un server Web di Windows consente ai browser di accedere alle cartelle locali sotto la cartella di pubblicazione utilizzando gli URL Internet standard. Se la cartella di pubblicazione è in "C: \ inetpub \ wwwroot \ myhost \ htdocs \", quindi l'URL "file: //localhost/home/usr/hello.html" ricorda a "C: \ inetpub \ wwwroot \ myhost \ htdocs home \ usr \ hello.html \ ".
Shlwapi.dll (Shell libreria API leggera) consente ai browser di accedere ai file senza un server web. Su un computer con l'UNC (Universal / Uniform Naming Convention) o "network / intranet" nome "NYAFLR02RM038", il browser accetta i seguenti formati:
Non URL:
C: \ Documents and Settings \ anotherhello.html
\ NYAFLR02RM038 \ Documents and Settings \ anotherhello.html
URL:
File: //NYAFLR02RM038/Documents%20and%20Settings/anotherhello.html
file: // C: /Documents%20and%20Settings/anotherhello.html