??? ?????????? Book Unit 1
??? ?????????? Book Unit 1
Web Technology
Price : ` 375/-
® TM
ISBN 978-93-332-0238-1
TECHNICAL
PUBLICATIONS
An Up-Thrust for Knowledge 9 7 8 9 3 3 3 2 0 2 3 8 1
(i)
Check out : www.eduengineering.net For all subject Notes
Check out : www.eduengineering.net For all subject Notes
Unit I
Syllabus
Web Essentials : Clients, Servers, and Communication. The Internet-Basic Internet Protocols -The
World Wide Web-HTTP request message-response message-Web Clients Web Servers.
Contents
1.1 Web Essentials
1.2 Internet Protoco........................................................ Dec.-09,11, May-14, ............ Marks 8
1.3 HTTP Request and Response Message.................. June-09, May-12, 13,14,
................................................................................. Dec.-12, 13 ........................... Marks 8
1.4 Features of HTTP Protocol
1.5 Web Clients ............................................................. Dec.-11, ............................... Marks 8
1.6 Web Server .............................................................. May-10,12,13 ..................... Marks 12
1.7 Client, Sever and Communication
Two Marks Questions with Answers
(1 - 1)
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-2 Web Site Basics
Definition : Internet is global system in which millions of computers are connected together. It is
basically a network of networks.
Using internet many people can share resources and can communicate with each other. To have
internet service one must go to the service providers. That means your computer must be
connected to the Internet Service Providers (ISP) through phone-line modem or DSL.
There are some privately owned internet service providers from which we can hire the internet
services.
Definition : World Wide Web (WWW) is collections of software and corresponding protocols used to
access the resources over the network.
The world wide web is a information system in which various documents containing
information are interlinked together. User can access this information or write the information
via computers. This information is typically stored on the web pages and through web browsers
we can access these web pages.
The web pages may contain the information in the form of text, audio, video, images and
graphics. We can navigate between the web pages using hyperlinks.
The concept of WWW was introduced by Sir Tim Berners-Lee the contractor at the European
Organization for Nuclear Research (CERN), Switzerland in 1980. He built a personal
database of people and software models and used hypertext so that each new page of
information was linked to an existing page.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-3 Web Site Basics
The internet is collection of computers and other devices (such as printers, scanners etc.)
connected together whereas World Wide Web (WWW) is collection of software and
corresponding protocols used to access the resources over the network.
The world wide web contains huge amount of documents, images and other resources which can
be accessed using the hyperlinks.
Thus people use internet through the Web.
When client makes a request for particular file download then using the data transfer
connection actual data gets transmitted from server to the client.
At the same time server keeps track of how much data is sent so far and how much is
remaining. This tracking can be done using the control transfer connection.
Hence during the file downloading/uploading we can see a message about how many bytes
are getting transferred and how much time is remaining.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-4 Web Site Basics
(2) HTTP
The Hyper Text Transfer Protocol (HTTP) is a request/response protocol.
It is a communication protocol used to transfer the information on local area network and
World Wide Web (WWW).
It is the network protocol used to deliver virtually all files and other data (collectively called
resources) on the World Wide Web, whether they're HTML files, image files, query results,
or anything else. Usually, HTTP takes place through TCP/IP sockets.
It is also called as a stateless protocol because this protocol is not able to maintain the
previous conversation/information.
(3) SNMP
(4) SMTP
Simple Mail Transfer Protocol (SMTP) is a simple protocol which is extensively used for
transfer of e-mails to remote servers.
It is an asynchronous protocol, because it allows delayed delivery of message.
With the help of mail transfer agent and user agent the SMTP sends and receives the emails.
(5) POP3
Post Office Protocol version 3 (POP3) is used by local email clients (such as Microsoft
Outlook Express).
The POP3 protocol works only at the receivers end and has no work at the sender’s end.
The POP protocol has two parts, a client POP i.e. receiver’s POP and a server POP i.e.
reciever’s email server. The client i.e. the receiver opens TCP connection with receiver’s
POP server. This client must be authenticated first by using the user name and password.
Then the client can receive the emails from the mailbox.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-5 Web Site Basics
(6) TCP
The Transmission Control Protocol is used for,
1. Safe delivery of data
2. Error detection
3. Assurance of the correct sequencing of data being received.
This protocol is called connection oriented protocol because before sending the data this
protocol requires that two computers have established connections.
The TCP allows the transmission of arbitrary amount of data by breaking it into stream of
separate IP packets.
These IP packets are numbered so that it could be reassembled properly at arrivals. Along
with the data an acknowledgement is also sent/received in order to know whether the
reliable connection has occurred or not.
(7) UDP
The user datagram protocol is a connectionless protocol without any error detection
facility.
This protocol is used for simply transmission of data.
The UDP is known as an unreliable protocol however this is much faster than TCP.
(8) IP
Internet Protocol (IP) is a network layer protocol which consists of addressing information.
Using this information the communication between uniquely addressed computers is
possible.
University Questions
1. Explain the various Internet protocols used for client server communication.
AU : Dec.-09, Marks 8,May-14, Marks 8
2. Explain TCP/IP in detail. AU : Dec.-11, Marks 8
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-6 Web Site Basics
<Header fields>
<Blank Line>
<Message Body>
<start Line>
The start line consists of three parts which are separated by a single space. These parts are -
i) Request method ii) Request-URI iii) HTTP version
(i) Request Method : Various methods used for making the request are enlisted in the following
table
HTTP method Description
GET The GET method is used to retrieve information from a specified URI and is
assumed to be a safe, repeatable operation by browsers.
POST The POST method is used to request the server for desired web page and the
request made is accepted as a new subordinate of the resource identified.
The POST method is used for operations that have side effects and cannot be
safely repeated. For example, transferring money from one bank account to
another has side effects and should not be repeated without explicit approval
by the user.
HEAD The HEAD method is identical to GET. The only difference is that the server
should not return a message-body in the response. The meta-information
contained in the HTTP headers in response to a HEAD request should be
similar to the information sent in response to a GET request.
OPTION This method supports for the specified URL. It can be used to check the
functionality of a web server by requesting '*' instead of a specific resource.
PUT This method uploads a representation of the specified resource.
DELETE This method is useful in deleting the specified resource.
TRACE When request is made using TRACE method the server echoes back the
received request so that a client can see what intermediate servers are adding
or changing in the request.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-7 Web Site Basics
(ii) Request-URI:
The Uniform Resource Identifier (URI) is a string used to identify the names or resources
on the Internet.
The URI is a combination of URL and URN.
The URL stands for Uniform Resource Locator and URN stands for Uniform Resource
Name.
The web address denotes the URL and specific name of the place or a person or item
denotes the URN. For example
urn : ISBN 978-81-8431-123-2
specifies the address of some book.
If the URI is written in the form of http: then it is both an URI and URL but there are some
other URI which can also be used as URL. For example
URL Intended server
(iii) HTTP Version : The first HTTP version was HTTP/0.9 but the official version of HTTP was
HTTP/1.1
<Header Field> and <Message Body>
The host header filed is associated with the http request.
The header fields are in the form of field name and field value.
Thus typical structure of http request is given be following example -
<Header fields>
<Blank Line>
<Message Body>
<Status Line>
Status line is similar to the start line in the request message. It consists of three fields.
HTTP version Status code reason phrase
The HTTP version denotes the HTTP version such as HTTP/1.1. The status code is a numeric
code indicating the type of response. The reason phrase is in the text string form and presents the
information about the status code.
For example -
201 Created It shows that the request is fulfilled and a new resource is
being created.
202 Accepted When the request is accepted for processing but is not
processed yet is denoted by this status code.
301 Moved The URI for requested resource is moved at some another
permanently location.
403 Forbidden The requested resource is present on the server but the server
is not able to respond it.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1-9 Web Site Basics
404 Not Found The requested resource is not present currently but may be
available in future.
500 Internal Server It is a generic error message that appears due to software
Error internal failure.
<Header Fields>
The header field in response message is similar to that of request message.
<Message Body>
The message body consists of response message.
For example
HTTP/1.1 200 OK
Date: Sat, 30 Mar 2019 07:59:01 GMT
Server: Apache/2.0.50 (Unix) mod_perl/1.99_10 Perl/v5.8.4
mod_ssl/2.0.50 OpenSSL/0.9.7d DAV/2 PHP/4.3.8
Last-Modified: Mon, 23 Feb 2009 08:32:41 GMT
Accept-Ranges: bytes
Content-Length: 2010
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>...</html>
The response header fields are enlisted in following table
Header field Description
Date It represents the date and time at which the response is generated.
Server The name of the server which is responding
Last-Modified The date and time at which the response is last modified.
Accept-ranges It specifies the unit which is used by the client to accept the range request.
For example if there is a large document and only a single web page is
currently needed then this specifies the Accept-range.
University Questions
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 10 Web Site Basics
This software sends the HTTP request to the server and then processes the HTTP response.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 11 Web Site Basics
1.5.2 URL
The Uniform Resource Locator (URL) is unique address for the file that has to be accessed over
the internet.
When we want to access some website we enter it’s URL in the address bar of the web browser.
For example if we want to access www.google.com then we must specify its URL in the address
bar as shown
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 12 Web Site Basics
However any other file such as some text file or image file or some HTML file can also be
specified. The URL contains name of the protocol such as http://
The URL may contain the name of the protocol as such as ftp. For example
ftp://ftp.funet.fi/pub/standards/RFC/rfc2166.txt
The protocol identifier and the resource name are separated by a colon and two forward slashes.
The syntax of writing URL is as given below,
protocol://username@hostname/path/filename
Sometimes instead of domain name servers IP addresses can also be use. For example,
http://192.168.0.1
But use of IP address as URL is not preferred because human can not remember numbers very
easily but they can remember names easily.
University Question
Web server is a special type of server to which the web browser submits the request of web page
which is desired by the client.
There are some popularly used web servers such as Apache and IIS from Microsoft.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 13 Web Site Basics
1.6.1 Apache
It is an excellent server because of its two important features : Reliability and Efficiency.
Secondly it is more popular because it is an open source software. That means it is freely
available to anybody. Apache web server is best suitable for UNIX systems but it can also be
used on Windows box.
The apache web server can be configured as per the requirements using the file httpd.conf. This
file is present in the Apache software package.
1.6.2 IIS
The Internet Information Services or Internet Information Server is a kind of web server
provided by Microsoft.
This server is most popular on Windows platform.
Following are some differences between Apache and IIS servers
Sr. No. Apache web server IIS web server
1. Apache web server is useful on both IIS web server is used on Windows
Unix based systems and on Windows platform.
platform.
2. It is an open source product. It is a vendor specific product and can
be used on windows products only.
3. The Apache web server can be For IIS server, the behaviour is
controlled by editing the configuration controlled by modifying the window
based management programs called IIS
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 14 Web Site Basics
University Questions
Working
Step 1 : The client PC or web client submits the request for desired web page to the web
server.
Step 2 : The work of server is distributed among application server and database servers.
Application server possess the required communication functions.
Step 3 : The data required by this business logic is present on database server. The required
data is returned to application servers
Step 4 : The web server or application server prepares the response page and sends it to the
web client.
Advantages :
1. High performance and persistent objects take part in communication.
2. This architecture is scalable. That means it can support increased number of users and
resources.
3. High degree of flexibility in deployment platform and configurations.
4. Code/data reusability can be achieved.
5. Improved data integrity
6. Improved security as clients can not directly access the database.
7. The maintenance and modifications can be done effectively without disturbing other modules
in the architecture.
Disadvantages :
1. The complexity gets increased.
2. Cost for network maintenance and deployment is increased.
Q.1 List any two types of web servers with its application usage. AU : May-09
Ans. : There are two types of web servers one is vendor specific and another one is open
source. The example of vendor specific web server is IIS and example of open source web server
is Apache.
The IIS web server is used on Windows and Apache web server can be used on both Unix
and Windows platform.
Q.2 Why is HTTP called as stateless protocol ? AU : Dec.-09
Ans. : The HTTP protocol can not remember the previous user’s information nor it remembers
the number of times the user has visited the particular web page. That means it can not
remember the previous states. Hence HTTP is called stateless protocol.
Q.3 What is a web server ? Explain its functionalities. AU : Dec.-09
Ans. : Web server is a special type of server to which the web browser submits the request of
web page which is desired by the client. For example: IIS ,Apache.
Web server processes the request of the user which it submits using the web browser.
Sometimes the web servers access the database system and fetche the required information. The
required web page is compiled and sent to the user in his/her web browser.
Q.4 State the use of web server logs and list the contents of a message log. AU : May-11
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 16 Web Site Basics
Ans. : Web server log records the information about the server activity. It stores the
information about every http request processed by the server. A web server may produce more
than one message logs.
Every message log contains variety of debugging information and other information
generated by web application. Following information is present in the message log -
A. Host name or IP address of the client machine making the request.
B. Name of the user.
C. Date and time of response along with the time zone.
D. Start line of HTTP request.
E. HTTP status code of response.
F. Number of bytes sent in body of response.
Q.5 What is the use of cache control in HTTP response header ?
Ans. : Cache is used as a temporary repository. Use of cache improves the performance. Many
web browsers store web pages viewed by the client in the cache memory. This brings efficiency
in browsing the web page. The cache control help the user to display the web page quickly.
Q.6 List some basic internet protocols. AU : May-13
Ans. : Following are some basic Internet protocols.
i. http ii. ftp iii. smtp iv. pop3.
Q.7 For handling the mails which protocol is used ?
Ans. : There are two commonly used protocols for handling the emails. Simple Mail Transfer
Protocol (SMTP) is a simple protocol which is used to transfer emails to remote servers. Another
protocol is POP3 i.e. Post Office Protocol Version 3. This protocol works only at the receivers
end and has no work at the sender’s end.
Q.8 Give the functionalities of IP protocol.
Ans. : There are two functionalities provided by Internet Protocol -
Decomposition of the initial information flow into packets of standardized size and
reassembling of data at the destination.
The Internet protocol routes the packet through successive networks, from the source
machine to the destination which can be identified by its IP address.
Q.9 What is the difference between WWW and Internet ?
Ans. : The WWW and Internet are the two different terms. The Internet is a collection of
computers and other devices such as printers, scanners etc. connected together whereas WWW is
collection of software and corresponding protocol used to access the resources over the network.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 17 Web Site Basics
Thus World Wide Web (WWW) contains huge amount of documents, images and other
resources which can be accessed using the hyperlinks. People use Internet through web.
Q.10 Explain any two functionalities of web browser.
Ans. : Various functions of web browser are -
1. Reformat the URL and send a valid HTTP request.
2. When user gives the address of particular website it is in the form of domain name.
The web browser converts the DNS to corresponding IP address.
3. The web browser establishes a TCP connection with the web browser while
processing the user’s request.
4. The web browsers send the HTTP request to the web server.
Q.11 What is URL ? Write different parts of URL.
Ans. : The general format of URL is -
Scheme:Address
That is
protocol://username@hostname/path/filename
The scheme specifies the communication protocol. Different schemes have different forms
of addresses.
Various schemes that are used are http, ftp, gopher, file, mailto, news and so on.
Example : http://www.vtubooks.com/index.aspx
Q.12 Define URI. AU : May-11
Ans. : The Uniform Resource Identifier (URI) is a string used to identify the names or resources
on the Internet. The URI is a combination of URL and URN. The URL stands for Uniform
Resource Locator and URN stands for Uniform Resource Name. The web address denotes the
URL and specific name of the place or a person or item denotes the URN. For example
urn:ISBN 978-81-8431-123-2
specifies the address of some book.
Every URI consists of two parts, the part before the colon : denotes the scheme and the part
after colon depends upon the scheme. The URIs are case insensitive but generally written in
lower case. If the URI is written in the form of http: then it is both an URI and URL.
Q.13 What is GET and POST request ?
Ans. : The GET method is used to retrieve the information from a specified URI. The POST
method is used to request the server for desired web page. This is supposed to be a safe method
of retrieving the information.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 18 Web Site Basics
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 19 Web Site Basics
Ans. :
2. The number of users of internet are The number of users of intranet are limited.
unlimited.
4. Internet contains large number of Internet can be accessed from the intranet but
intranets. with restrictions.
TM
Technical Publications - An up thrust for knowledge
Check out : www.eduengineering.net For all subject Notes
Web Technology 1 - 20 Web Site Basics
Notes
TM
Technical Publications - An up thrust for knowledge