CH 1 - Intro
CH 1 - Intro
CH 1. Introduction
Syllabus
– Concept of WWW
– Internet and WWW
– HTTP Protocol: Request and Response
– Web Browser and Web servers
– Features of Web 2.0
What is Internet
• Internet is an interconnection between the
computers cited at the remote locations in the
world wide web (WWW).
• Every person who makes a connection owns a
slice of the internet
• Internet is a network of networks or collection of
LANs which share a common set of protocols for
communication between the LANs.
• The internet has it’s root in the ARPANET
system of the Advanced Research Project
Agency of the US department of Defence.
What is Internet actually ?
ARPANET (Advance Research Project Agency Network) was the
first WAN and had only four sites in 1969.
The host computer that runs this software is called a domain name
server.
Uniform Resource Locators
To identify a Web pages exact location, Web browsers rely on
Uniform Resource Locator (URL).
pathname
protocol
http://www.chicagosymphony.org/civicconcerts/index.htm
filename
Domain name
HTTP
HTTP is an application layer protocol for WWW.
Commands
ftp – starts an ftp session
Get – download file from server
Put – upload file to the server
Bin – binary mode transfer ( JPEG , GIF , MS WORD )
Asc – Ascii text mode Transfer ( text based files needs to be sent )
Open – open a new connection
Close – close the connection
File Transfer Protocol
Upload myIndex.doc on FTP server
Name : jayesh
Password :
ftp>put myindex.doc
Problems with FTP
Firewall may be set up to stop access either outward bound or
inward toward your computer on available ports. This includes the
FTP port 21. So for Connection problem check port 21 is blocked or
not.
If you use FTP to transfer file of your website any newly uploaded
pages may take a time to appear to browser due to factors such as
local caching on individual machines and servers.
Email
STEPS for Sending Mail
• User writing message using mail client ( MUA – mail user agent)
• Program uses SMTP to send message to the local (MTA) mail Transfer
agent which exist on the user’s ISP.
• Once mail server is found , the message is sent on using SMTP and from
there it is placed using local name to find correct mail box.
• User’s client retrieves from mail box via MUA using post office protocol
(POP3)
HTTP Message Format
• HTTP is used for Communication between browser and web server.
http://www.yahoo.com/index.html
• Once the connection is established , the client application extracts the file
name from URL and sends the request down the established connection.
Examples
Entity Header
Expires : Thu, 15 Oct 2009 // the date and time content will modified
Response Message
Response message is sent by a server to the client. It Consists of following
paths.
– A status line
– A header
– An empty line
– An optional body
Status Line : It Consists of three parts: HTTP version , Status code, Status
phrase. Two Consecutive parts are separated by a space.
e.g.
Client
Server
(Browser)
http://www.mysports.com/index.html
24
Protocols and Programs: Web Pages
192.22.18.32
Port 80
Client
Server
(Browser)
http://www.mysports.com/index.html
192.22.18.32
•Second stage: URL is converted into IP address, which is then used to
make a connection to the server via port 80, the one used for HTTP and
web.
25
Protocols and Programs: Web Pages
Get index.html
Client
Server
(Browser)
HTTP/1.1
http://www.mysports.com/index.html
•Third stage: client extracts the file name from the URL and sends the
request. When received, the server looks up the request.
26
Protocols and Programs: Web Pages
HTTP/1.1 200 OK
Client
Server
(Browser)
[contents of document]
http://www.mysports.com/index.html
•Final stage: if all is well, the HTTP message is sent saying that the page
was found, followed by the page itself. When the page has been sent the
connection is dropped.
27
Web Browser
•One of the main tools used while developing web applications is
the Web Browser.
•Download location option allows you to select where the files you
want to download will go.
30
Web 2.0
• 2nd generation of the WWW.
• Some example of features considered to be part
of web 2.0 are listed below..
• 1)Blogs
• 2) Wikis
• 3) Social Networking
• 4) Web application
• 5) User Participation
• 6) Long tail
• 7) Rich user experience