Tools, FAQ, Tutorials:
Default Protocol and Port Number of a URL
What Happens If Protocol or Port Number Is Missing in a URL?
✍: FYIcenter.com
From a syntax point of view, all URL parts are optional.
If some parts are not included in a URL, the browser and the hosting computer
will provide default values. Here are some rules about the protocol name,
host name, and port number:
1. If the protocol name part is missing, but the host name part is given, "http://" will be used as the default value. The following URLs are identical:
dev.fyicenter.com/faq/xhtml/ http://dev.fyicenter.com/faq/xhtml/
2. If the port number part is missing, but the host name part is given, the default port number that matches the protocol name will be used. The following URLs are identical:
dev.fyicenter.com/faq/xhtml/ dev.fyicenter.com:80/faq/xhtml/ http://dev.fyicenter.com/faq/xhtml/ http://dev.fyicenter.com:80/faq/xhtml/
3. If the port number part is given, the host name part must be specified. The following URLs are invalid:
http://:8080/ :80
2017-07-07, ∼2533🔥, 0💬
Popular Posts:
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How To Create an Array with a Sequence of Integers or Characters in PHP? The quickest way to create ...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...