If I have a URL like:
http://www.example.com:9090/test.html
Then I know that www.example.com
is the host name, but what do you call http://www.example.com:9090
? Is there some kind of established name for that?
The first part of the URL is the scheme, which indicates the protocol that the browser must use to request the resource (a protocol is a set method for exchanging or transferring data around a computer network). Usually for websites the protocol is HTTPS or HTTP (its unsecured version).
What are the parts of a URL? A URL consists of five parts: the scheme, subdomain, top-level domain, second-level domain, and subdirectory.
URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet. A URL has two main components: Protocol identifier: For the URL http://example.com , the protocol identifier is http . Resource name: For the URL http://example.com , the resource name is example.com .
It is called the origin.
More generally speaking, here are the different parts of a URL, as per window.location
. (So at least according to how Javascript calls it)
protocol://username:password@hostname:port/pathname?search#hash -----------------------------href------------------------------ -----host---- ----------- origin -------------
protocol
- protocol scheme of the URL, including the final ':'hostname
- domain nameport
- port numberpathname
- /pathname
search
- ?parameters
hash
- #fragment_identifier
username
- username specified before the domain namepassword
- password specified before the domain namehref
- the entire URLorigin
- protocol://hostname:port
host
- hostname:port
Formal definition is in RFC 6454 section 4.
I don't know the name for when it has the scheme, but the hostname with the port is collectively known as the Authority
. A nice explanation here
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With