TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
PART 6 Application Layer
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
The Application Layer Chapter 7. Electronic Mail Architecture and Services The User Agent Message Formats Message Transfer Final Delivery.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 17 Introduction to the Application.
The Internet Useful Definitions and Concepts About the Internet.
Layer 7- Application Layer
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Introduction to Web Interface Technology (CSE2030)
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Know how HTTP accesses data on the WWW Objectives.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
Chapter 27 HTTP and WWW.
Introduction to Web Interface Technology (CSE2030)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
INTRODUCTION TO WEB DATABASE PROGRAMMING
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
World Wide Web Hypertext model Use of hypertext in World Wide Web (WWW) WWW client-server model Use of TCP/IP protocols in WWW.
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
TCP/IP Protocols Dr. Sharon Hall Perkins Applications World Wide Web(HTTP) Presented by.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Client-Server Server Client Hypertext link TCP port 80.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
The Web and Web Services Jim Graham NR 621 Spring 2009.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 27 HTTP and WWW.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
CS 6401 The World Wide Web Outline Background Structure Protocols.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Internet Protocol Version4 (IPv4)
Chapter 26 Standard Client-Server Protocols Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Chapter 26 Standard Client-Server Protocols
Distributed Control and Measurement via the Internet
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Communication & Networks
Chapter 27 WWW and HTTP.
Application layer Lecture 7.
HyperText Transfer Protocol
EE 122: HyperText Transfer Protocol (HTTP)
PART 6 Application Layer
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP

TCP/IP Protocol Suite 2OBJECTIVES:  To discuss the architecture of WWW and describe the concepts of hypertext and hypermedia.  To describe Web clients and Web servers and their components.  To define URL as a tool to identify a Web server.  To introduce three different Web documents: static document, dynamic document, and active document.  To discuss HTTP and its transactions.  To define and list the fields in a request message.

TCP/IP Protocol Suite 3 OBJECTIVES (continued):  To define non-persistent and persistent connections in HTTP.  To introduce cookies and their applications in HTTP.  To discuss Web caching, its application, and the method used to update the cache.

TCP/IP Protocol Suite 4 Chapter Outline 22.1 Architecture 22.2 Web Document 22.3 HTTP

TCP/IP Protocol Suite ARCHITECTURE The WWW today is a distributed client-server service, in which a client using a browser can access a service using a server. However, the service provided is distributed over many locations called sites. Each site holds one or more documents, referred to as Web pages. Each Web page, however, can contain some links to other Web pages in the same or other sites. In other words, a Web page can be simple or composite.

TCP/IP Protocol Suite 6 Topics Discussed in the Section Hypertext and Hypermedia Web Client (Browser) Web Server Uniform Resource Locator (URL)

TCP/IP Protocol Suite 7 Assume we need to retrieve a Web page that contains the biography of a famous character with some pictures, which are embedded in the page itself. Since the pictures are not stored as separate files, the whole document is a simple Web page. It can be retrieved using one single request/ response transaction, as shown in Figure Example Example 22.1

TCP/IP Protocol Suite 8 Figure 22.1 Example 22.1

TCP/IP Protocol Suite 9 Now assume we need to retrieve a scientific document that contains one reference to another text file and one reference to a large image. Figure 22.2 shows the situation. The main document and the image are stored in two separate files in the same site (file A and file B); the referenced text file is stored in another site (file C). Since we are dealing with three different files, we need three transactions if we want to see the whole document. The first transaction (request/response) retrieves a copy of the main document (file A), which has a reference (pointer) to the second and the third files. Example Example 22.2

TCP/IP Protocol Suite 10 Figure 22.2 Example 22.2

TCP/IP Protocol Suite 11 A very important point we need to remember is that file A, file B, and file C in Example 22.2 are independent Web pages, each with independent names and addresses. Although references to file B or C are included in file A, it does not mean that each of these files cannot be retrieved independently. A second user can retrieve file B with one transaction. A third user can retrieve file C with one transaction. Example Example 22.3

TCP/IP Protocol Suite 12 Figure 22.3 Browser

TCP/IP Protocol Suite 13 Figure 22.4 URL Protocol 에 따라서, 서버의 기본 포트번호가 정해져 있음.  예 : http  80  

TCP/IP Protocol Suite WEB DOCUMENTS The documents in the WWW can be grouped into three broad categories: static, dynamic, and active. The category is based on the time the contents of the document are determined.

TCP/IP Protocol Suite 15 Topics Discussed in the Section Static Documents Dynamic Documents Active Documents

TCP/IP Protocol Suite 16 Figure 22.5 Static document

TCP/IP Protocol Suite 17 HTML, XML, XSL, and XHTML are discussed in Appendix E. Note

TCP/IP Protocol Suite 18 Figure 22.6 Dynamic document using CGI prog.pl  program 이름 ?23  파라메타 전체문서 C, C++, sh, csh, ksh, tcl, perl,...

TCP/IP Protocol Suite 19 Figure 22.7 Dynamic document using server-site script JSP (java) ASP (MS VB)... 문서의 일부분

TCP/IP Protocol Suite 20 Dynamic documents are sometimes referred to as server-site dynamic documents. Note

TCP/IP Protocol Suite 21 Figure 22.8 Active document using Java applet Java bytecode (binary) format

TCP/IP Protocol Suite 22 Figure 22.9 Active document using client-site script Java-like script. text format javascript != java

TCP/IP Protocol Suite 23 Active documents are sometimes referred to as client-site dynamic documents. Note

r WWW, HTTP, and Java 24 JAVA  Java Virtual Machine (JVM)  Operating System  Hide hardware to user  Java Virtual Machine  Hide OS to user

r WWW, HTTP, and Java 25  Why JVM ?  The java programs are downloaded from server, and executed in client side  Applet  Many operating systems are present  Define OS independent virtual machine: JVM  Java programs are assumed to executed in JVM  All of java program can be executed in any type OS implemented JVM  JVM specification defines  Data Types, instruction set, execution file(classfile) structure, load, linking, initialization, …  Examples of JVM  Applet supported Web-Browser

r WWW, HTTP, and Java 26 JAVA execution environments

TCP/IP Protocol Suite HTTP The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web. HTTP functions like a combination of FTP (Chapter 21) and SMTP (Chapter 23). It is similar to FTP because it transfers files and uses the services of TCP. However, it is much simpler than FTP because it uses only one TCP connection. There is no separate control connection; only data are transferred between the client and the server.

TCP/IP Protocol Suite 28 Topics Discussed in the Section HTTP Transaction Conditional Request Persistence Cookies Web Caching: Proxy Server HTTP Security

TCP/IP Protocol Suite 29 HTTP uses the services of TCP on well- known port 80. Note

TCP/IP Protocol Suite 30 Figure HTTP transaction

TCP/IP Protocol Suite 31 Figure Format of the request message

TCP/IP Protocol Suite 32

TCP/IP Protocol Suite 33

TCP/IP Protocol Suite 34 Figure Format of the response message

TCP/IP Protocol Suite 35

TCP/IP Protocol Suite 36

TCP/IP Protocol Suite 37 This example retrieves a document (see Figure 22.13). We use the GET method to retrieve an image with the path /usr/bin/image1. The request line shows the method (GET), the URL, and the HTTP version (1.1). The header has two lines that show that the client can accept images in the GIF or JPEG format. The request does not have a body. The response message contains the status line and four lines of header. The header lines define the date, server, MIME version, and length of the document. The body of the document follows the header. Example Example 22.4

TCP/IP Protocol Suite 38 Figure Example 22.4

TCP/IP Protocol Suite 39 In this example, the client wants to send data to the server. We use the POST method. The request line shows the method (POST), URL, and HTTP version (1.1). There are four lines of headers. The request body contains the input information. The response message contains the status line and four lines of headers. The created document, which is a CGI document, is included as the body (see Figure 22.14). Example Example 22.5

TCP/IP Protocol Suite 40 Figure Example 22.5

TCP/IP Protocol Suite 41 HTTP uses ASCII characters. The following shows how a client can directly connect to a server using TELNET, which logs into port 80. Example Example 22.6

TCP/IP Protocol Suite 42 The following shows how a client imposes the modification data and time condition on a request. Example Example 22.7 The status line in the responds shows the file is not modified after the defined point of time. The body of the response message is also empty.

TCP/IP Protocol Suite 43 Figure shows an example of a nonpersistent connection. The client needs to access a file that contains two links to images. The text file and images are located on the same server. Example Example 22.8

TCP/IP Protocol Suite 44 Figure Example 22.8

TCP/IP Protocol Suite 45 HTTP version 1.1 specifies a persistent connection by default. Note

TCP/IP Protocol Suite 46 Figure shows the same scenario as Example 22.8, but using persistent connection. Example Example 22.9

TCP/IP Protocol Suite 47 Figure Example 22.9

TCP/IP Protocol Suite 48 Figure shows a scenario in which an electronic store can benefit from the use of cookies. Assume a shopper wants to buy a toy from an electronic store named BestToys. The shopper browser (client) sends a request to the BestToys server. Example Example 22.10

TCP/IP Protocol Suite 49 Figure Example 22.10