| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
URL Schemes (Applications / Access Methods) and Scheme-Specific Syntaxes (Page 5 of 5) Telnet URL Syntax (telnet) This scheme is used to open a Telnet connection to a server. This is the syntax: telnet://<user>:<password>@<host>:<port> In practice, the user name and password are often omitted, which causes the Telnet server to prompt for this information. Alternately, the <user> can be supplied and the password left out (to prevent it being seen) and the server will prompt for just the password. The port number defaults to the standard port for Telnet, 23, and is also often omitted. This type of URL is interesting in that it identifies a resource that is not an object but rather a service. This is a special URL type used for referring to files on a particular host computer. The standard syntax is: file://<host>:<url-path> This type of URL is also somewhat interesting, in that it describes the location of an object but not an access method. It is not sufficiently general to allow access to a file anywhere on an internetwork, but is often used for referencing files on computers on a local area network where names have been assigned to different devices. A special syntax is also defined to refer specifically to files on the local computer: file:///<url-path> Here, the entire //<host>: element has been replaced by a set of three slashes, meaning specifically, look on the local host. Additional syntax rules are often used by browsers to support the quirks of Microsoft operating systems, especially for the file scheme. First, the backslashes used by Microsoft Windows are expressed as forward slashes as required by TCP/IP. Second, since colons are used in drive letters specifications in Microsoft operating systems, these are replaced by the vertical pipe character, |, which sorta looks like a colon (play along, please. J) So, to refer to the file C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS, the following URL could be used: file:///C|/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS Note however that some browsers actually do allow the colon in the drive specification.
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. |