9.1 Uniform Resource Locator (URL)


1. A Uniform Resource Locator (URL) is a human-readable string that is used to identify Internet resources.
2. Such resources include web objects (HTML files, JPEG or GIF files, Java Applets, audio files, etc.), emails, ftp, etc.
3. URLs support many Internet protocols such as the HyperText Transfer Protocol for supporting web page access (described in the next section).
4. As illustrated in the example shown in Figure 9.1, a URL consists of a number of parts:
a) Protocol used to access the resources. In this example the protocol is HTTP as the URL is for a web page.
b) The domain name of the server hosting the resource. The IP address of the server can also be used (somecompany.com).
c) The port number which the process hosting the resource listens to.
In this example, the URL is specifying the location of a web page which is hosted by a software web server (e.g. Apache).
Web server processes usually listen to the default port 80 for requests.
The port number can be omitted if that is the case.
I.e. the URL in the example below is still valid as follows http://www.somecompany.com/HRDepartment/leaveForm.html.
If the process is listening to a different port, it has to be specified in the URL.


9.1 Uniform Resource Locator (URL)


d) The directory path of the resource on the server (HRDepartment/leaveForm.html).