0% found this document useful (0 votes)
12 views4 pages

Capter-5 WebURL

The document explains the structure and components of a web URL, including its protocol, domain, port, resource path, query string, and fragment ID. It emphasizes that each web application must have a unique URL for access and outlines the role of protocols in communication between applications. Additionally, it provides examples and details about the significance of each component in the URL syntax.

Uploaded by

naveensr4342
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Capter-5 WebURL

The document explains the structure and components of a web URL, including its protocol, domain, port, resource path, query string, and fragment ID. It emphasizes that each web application must have a unique URL for access and outlines the role of protocols in communication between applications. Additionally, it provides examples and details about the significance of each component in the URL syntax.

Uploaded by

naveensr4342
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Web URL

• Web Uniformed Resource Location (URL): uniquely identify the specific web resource inside
the web application

• Every web application should have its unique address in the form of URL

• URL is one & only way to access web application via browser

• Max number of charterer in the URL is 200

Syntax

protocal://<domainName>:port/resourcePath?queryString#fragementId

EG :

http://localhost:8888/index.php

http://google.com/search?q=iphone11

http://172.217.160.142/search?q=iphone11

Protocol

• It’s a common language where two application exchange information


each other
• When one application wants to communicate with each other (in our
case browser & server), these need to be a common language which
both application understand each other
• This language is known as protocol, where protocol as set of rules &
instruction
• Browser always send a request & receive response via http protocol
hence it is called http request / http response.
• It’s an optional information & case-insensitive
• Types of Protocol
 http
 https
 ftp
 smtp etc..

Domain
• Uniquely identify the specific computer in the network in which web
application in present
• Domain name might be computer name or iP addresses
• It’s a mandatory information & case sensitive
Example:
www.amazon.com (commercial)
.org (organization)
.edu (education)
.gov.in (government)

Port:
• Uniquely identify the specific software/application inside the computer
• In the URL this is an optional information
Tomcat JBoss WebLogic

http 8080 80 123

https 8443 443 456

• Below table specify the default port number

Resource Path:
• Uniquely identify the specific web resource inside the application Server
(web application)
• We know web application is a collection of web resources, so it’s a full
path of web resource at web application side
Example :
http://localhost:8080/index.html
http://localhost:8080/login
Query String:
 It always starts with “?”
 It will be present in key and value pair
 It can be used as search or filtering criteria
 We can have multiple query string separated by “&”

http://localhost:8888/Organization?module=organization

Fragment ID :
• Identify the specific fragment / section in the webpage
• Its an optional information in the url
http://mail.google.com/inbox/u/0#inbox

You might also like