What is URL? - arpanap

Wednesday, December 4, 2019

What is URL?

What is URL?            

is the acronym for Uniform Resource Locator. It is a reference to an address esource on the Internet. You provide URLs to favorite web browser so that it can locate files on the internet the same way that you provide addresses on letters so That  post office can locate your correspondents.
Java programs that interact with the Internet can also use the URL to find resources the Intemet they wish to access. Java programs can use a class called URL at java.net The package represents a URL.

A URL has two main components:
Protocol identifier: For the URL http://arpanap.in, the protocol identifier is http.
Resource name: For the URL http://arpanap.in, the resource name is arpanap.in.
Note that the protocol identifier and the resource name are separated by a colon and two forward slashes. The protocol identifier indicates the name of the protocol to be used fetch the resource. The example uses the Hypertext Transfer Protocol (HTTP), which is typically used to serve up hypertext documents. HTTP is just one of many different protocols are used to access different types of resources on the net. Other protocols include File Transfer Protocol (FTP), Gopher, File, and News. The resource name is the full address to the resource. The format of the resource The name depends entirely on the protocol used, but for many protocols, including HTTP, the The resource name contains one or more of the following components:

Host Name: The name of the machine on which the resource lives.

Filename: The pathname to the file on the machine.

Port Number: The port number to which connect (typically optional)


A reference to a resource within a named anchor that usually identifies a specific location within a file (typically optional).
For many protocols, the host name and the filename are required, while the port number And reference are optional. For example, the resource name for an HTTP URL is must specify a server on the network (Host Name) and the path to the document on that machine (Filename); It can also specify a port number and a reference.


No comments:

Post a Comment