URL
A Uniform Resource Locator (URL), colloquially termed a web address, is reference to a web resource that specifies its location on a computer network, and a mechanism for retrieving it. A URL is a specific type of URI that contains both the location of the item and the identifier of the item.
A url
, i.e., “http://servername:1234/resourcename?param1=value1¶m2=value2” consists of the following components:
- Transport Protocol, i.e. “http”, “https”, “file”, etc, followed by “://”
- The
servername
. This can be an IP Address, hostname, or FQDN. - The
port
that the “Web Application” that serves the resource is listening on. - The
resourcename
, which points to the resource on that server. - A
?
followed by a list of Get Parameters, which are separated with a&
.
Just like URIs URLs
can only contain certain characters.