Java Reference
In-Depth Information
Table 3.1: Common HTML Schemes
Scheme
Name
http
HTTP resources
https
HTTP over SSL
ftp
File Transfer Protocol
mailto
E-mail address
ldap
Lightweight Directory Access Protocol lookups
file
Resources available on the local computer or over a local file sharing
network
news
Usenet newsgroups
gopher
The Gopher protocol
telnet
The TELNET protocol
data
URL scheme for inserting small pieces of content in place
Following the URL scheme, the URL's host is specified. The URL host will be discussed
in the next section.
URL Host
The host specifies to which server the HTTP request is to be directed. There are several
different formats in which the URL host can be represented. First, it can be in the typical
domain form, such as:
www.httprecipes.com
Second, it can be expressed as an IP address, such as:
127.0.0.1
Finally, it can be expressed as a symbol that is resolved in the “ hosts ” file on the com-
puter, such as:
localhost
Following the URL host is the URL path and query. The URL path and query will be dis-
cussed in the next section.
URL Path and Query
The path specifies which file to retrieve, or which script to run on the server. The “que-
ry” specifies parameters to be passed to the URL. The query immediately follows the path
delimited by a question mark. The following URL specifies only a path:
http://www.httprecipes.com/1/1/cities.php
Search WWH ::




Custom Search