Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What Happens If Protocol or Port Number Is Missing in a URL
What Happens If Protocol or Port Number Is Missing in a URL? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs
✍: 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
2007-05-12, 4995👍, 0💬
Popular Posts:
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSome...
How to create a thread in a program? You have two ways to do so. First, making your class "extends" ...
What is the benefit of using #define to declare a constant? Using the #define method of declaring a ...
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question ...
Can Two Forms Be Nested? - XHTML 1.0 Tutorials - Understanding Forms and Input Fields Can two forms ...