Chapter 1: Introduction: Web Design and Development
Chapter 1: Introduction: Web Design and Development
Chapter 1: Introduction
- NSFnet - 1986
- Originally for non-DoD funded places
- Initially connected five supercomputer centers
- By 1990, it had replaced ARPAnet for non-
military uses
- Soon became the network for all (by the early
1990s)
• Many applications are running concurrently over the web, like web browsing,
email, file transfer, audio and video streaming etc.
• For proper communication between client and server, the applications must agree
on a specific application protocol like HTTP, FTP,SMTP
1.2 The World-Wide Web (cont..)
- the Web is a collection of software and protocols that has been installed on most
- The form of its Document is hypertext, which is text with embedded links to text
in other documents
- Pages/Documents/Resources/We’ll call them documents
• WWW allows a user anywhere on the Internet to search for and retrieve
documents
Hypertext
structured text that uses logical links (hyperlinks) between nodes that contain text
A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text
A page
of text A page
of text
A page
of text A page
A page of text
of text
A page
of text
Web or Internet?
Internet is a collection of connected computers(devices)
Web is a collection of software and protocols installed on these
computers which are using the internet
Web uses the protocols, http, that runs on the Internet–
among several others (telnet, mailto, etc.)
Client-Server Architecture
- But some requests are for program execution, with the output
being returned as a document
•Port number are used to identify the senders and receivers of messages
:
1.4 Web Servers
Example
-Site name: www.tunias.com
-document root: topdocs, stored as /admin/web/topdocs
-URL request1: http://www.tunias.com/petunias.html
- Server searches for: /admin/web/topdocs/petunias.html
-URL request2: http://www.tunias.com/bulbs/tulips.html
- Server searches for: /admin/web/topdocs/bulbs/tulips.html
1.4 Web Servers (continued)
-Proxy servers: serve documents that are in the document root of
other machines on the Web, intermediary, control access
• A server running on a machine that acts as intermediary b/n computer
and other server
• If one or more internet sites are frequently requested, these are likely to
be in the proxy cache, which will improve user response time
Advantage :-its cache can serve all users
• Helpful for troubleshooting (since the proxy logs its
interactions)
-Web servers now support other Internet protocols, other than HTTP
(e.g. ftp, mailto)
Common servers
- Apache (open source, fast, reliable)
type/subtype
1. Request Phase
Form: Request line
Request Header fields
blank line
Message body
Example
1.7 The Hypertext Transfer Protocol(continued)
•Four categories of header fields:
• General: for general info, e.g. date
• Request: info about browser, in request headers
• Response: information about the server, for response headers
• Entity: meta-information, used in both request & response headers
2. Response Phase
Form:
Status line
Response header fields
Blank line
Response body
<HTML>
<HEAD>
<TITLE> Addis Ababa Science and Technology University </TITLE>
…
- Status code is a three-digit number; first digit
specifies the general status
1 => Informational
2 => Success