Professional Documents
Culture Documents
Internet Programming
1
Chapter Objectives
2
Networking
• Networks are systems that are formed by links.
• People use different types of networks every day:
–Mail delivery system
–Telephone system
–Corporate computer network
–The Internet
10
• Web pages are stored on a Web server, or host, which is
a computer that stores and sends (serves) requested Web
pages and other files.
• Any computer that has Web server software installed and
is connected to the Internet can act as a Web server.
• Every Web site is stored on, and runs from, one or more
Web servers. A large Web site may be spread over
several servers in different geographic locations.
• In order to make the Web pages that you have developed
available to your audience, you have to publish those
pages.
11
Publishing is copying the Web pages and
associated files such as graphics and audio to
a Web server
Once a Web page is published, anyone who
has access to the Internet can view it,
regardless of where the Web server is located.
Once a Web page is published, it can be read
by almost any computer: whether you use the
Mac, Windows, or Linux operating system, with
a variety of computer hardware, you have
access to billions of published Web pages
12
WWW, Cont…
13
Web Browsers
• People access websites using software called a web
browser. Popular examples include Firefox, Internet
Explorer, Safari, Chrome, and Opera.
• A Web browser, also called a browser, is a program
that interprets and displays Web pages and enables
you to view and interact with a Web page.
Microsoft Internet Explorer, Mozilla Firefox, and Apple
Safari are popular browsers today.
To locate a Web page using a browser, you type the
Web page’s Uniform Resource Locator (URL) in the
browser’s Address or Location bar.
14
WWW, Cont…
15
World Wide Web
Uniform Resource Locator (URL)
17
World Wide Web
Domain Name System (DNS)
a set of servers that map written names to IP
addresses
because names are easier to remember than IP addresses
Example: www.cps.gordon.edu → 216.236.251.139
many systems maintain a local cache called a hosts
file (looking up domain names is expensive)
Windows: C:\Windows\system32\drivers\etc\hosts
Mac: /private/etc/hosts
Linux: /etc/hosts
19
WWW, Cont…
W3C
– The World Wide Web Consortium is a group of
experts who meet regularly to develop common
protocols for the evolution of the WWW.
– The W3C agrees on standards for HTML, XML and
other web technologies, and for how web browsers
should interpret them.
– The most essential Web standard are HTML, CSS,
and XML.
20 – The latest HTML standard is HTML 5.
Hyperlink
Hyperlinks are an essential part of the World Wide
Web.
A hyperlink, also called a link, is an element used to
connect one Web page to another Web page that’s
located on the same server or used to link Web pages
located on a different Web server located anywhere in
the world.
Clicking a hyperlink allows you to move quickly from
one Web page to another, and the user does not have
to be concerned about where the Web pages reside.
You also can click hyperlinks to move to a different
section of the same Web page
21
The client server paradigm
22
Architecture of WWW
23
HTTP Request
24
Request and response messages
25
Request message
Example
GET /index.html HTTP/1.1
Host: www.cs.nott.ac.uk
Accept: text/*
User-Agent: Mozilla/2.02Gold (Win 10)
26
HTTP Response
27
Response message
<HTML>
<HEAD>
<TITLE>School of Computer Science</TITLE>
…
28
Some HTTP Status Codes
• 200 : OK
• 201 : Created
• 202 : Accepted
• 204 : No Content
• 301 : Moved Permanently
• 302 : Moved Temporarily
• 400 : Bad Request
• 401 : Unauthorized
• 403 : Forbidden
• 404 : Not Found
• 500 : Internal Server Error
• 503 : Service Unavailable
29
Multipurpose Internet Mail
Extensions (MIME)