In this Tutorials section we cover and explain Introduction For URL in details for freshers and experienced
previous | Home | Next |
The Introduction for URL (Uniform Resource Locator)
URL is stands for Uniform Resource Locator. It is a address to a resource on the Internet. The URL write or shows in web browser address bar, and we directly type URL and find the page , and you locate the address in the address bar and find the page which you want.
Java programs that interact with the Internet also may use URLs to find the resources on the Internet they wish to access. java.net package to represent a URL address, and in this package using Java program.
If you find the page and you've been surfing the Web so you have heard the term URL and you've used URLs to access HTML pages from the Web. you type URL for in address bar and find the pages.
It's often very easily, to think of a URL as the name of a file on the World Wide Web because most URLs refer to a file on some machine on the network. However, The URL is point to other resources on the network such as database queries and command output. it's find using URLs.
NOTE:URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet.
A URL have contain two main components
Protocol identifier
It's for the URL http://example.com, the protocol identifier is http.
Resource name
It's the URL http://example.com, the resource name is example.com.
The resource name is the complete address to the resource. The format of the resource name depends entirely on the protocol used, but for many protocols, including HTTP, the resource name contains one or more of the following components:
Host NameThe name of the machine on which the resource lives.
FilenameThe pathname to the file on the machine.
Port NumberThe port number to which to connect (typically optional).
ReferenceA reference to a named anchor within a resource 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 must specify a server on the network (Host Name) and the path to the document on that machine (Filename);
it also can specify a port number and a reference.
previous | Home | Next |