Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1009 Bytes

URL.md

File metadata and controls

12 lines (8 loc) · 1009 Bytes

Uniform Resource Locator protocol://hostname:port/path-and-file-name http://www.nowhere123.com/docs/index.html

There are 4 parts in a URL:

  1. Protocol: The application-level protocol used by the client and server, e.g., HTTP, FTP, and telnet.
  2. Hostname: The DNS domain name (e.g., www.nowhere123.com) or IP address (e.g., 192.128.1.2) of the server.
  3. Port: The TCP port number that the server is listening for incoming requests from the clients. When a client issues a URL without explicitly stating the port number, e.g., http://www.nowhere123.com/docs/index.html, the browser will connect to the default port number 80 of the host www.nowhere123.com. You need to explicitly specify the port number in the URL, e.g. http://www.nowhere123.com:8000/docs/index.html if the server is listening at port 8000 and not the default port 80.
  4. Path-and-file-name: The name and location of the requested resource, under the server document base directory, e.g. /docs/index.html.