Chapter 27 WWW and HTTP Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Similar documents
3. WWW and HTTP. Fig.3.1 Architecture of WWW

Chapter 2. Application Layer

Chapter 27. HTTP and WWW

Chapter 26 Remote Logging, Electronic Mail, and File Transfer 26.1

06/02/ Local & Metropolitan Area Networks 0. INTRODUCTION. 1. History and Future of TCP/IP ACOE322

CMPE 151: Network Administration. Servers

6 Computer Networks 6.1. Foundations of Computer Science Cengage Learning

Electronic Mail. Three Components: SMTP SMTP. SMTP mail server. 1. User Agents. 2. Mail Servers. 3. SMTP protocol

M3-R3: INTERNET AND WEB PAGE DESIGN

Computer Networks. Wenzhong Li. Nanjing University

Notes beforehand... For more details: See the (online) presentation program.

EEC-682/782 Computer Networks I

CSC 4900 Computer Networks:

Web Systems & Technologies: An Introduction

Motivation For Networking. Information access Interaction among cooperative application programs Resource sharing

M2-R4: INTERNET TECHNOLOGY AND WEB DESIGN

CS 43: Computer Networks. Layering & HTTP September 7, 2018

FTP,HTTP. By Nidhi Jindal

M3-R3: INTERNET AND WEB DESIGN

Review of Previous Lecture

World-Wide Web Protocols CS 571 Fall Kenneth L. Calvert All rights reserved

CMSC 332 Computer Networking Web and FTP

Web, HTTP and Web Caching

Web Systems & Technologies: An Introduction

Traditional Web Based Systems

Networking. Layered Model. DoD Model. Application Layer. ISO/OSI Model

COSC 2206 Internet Tools. The HTTP Protocol

CCNA Exploration Network Fundamentals. Chapter 3 Application Layer Functionality and Protocols

WWW: the http protocol

Web Technology. COMP476 Networked Computer Systems. Hypertext and Hypermedia. Document Representation. Client-Server Paradigm.

Lecture 25. Tuesday, November 21 CS 475 Networks - Lecture 25 1

Outline of Lecture 3 Protocols

The World Wide Web. Internet

Layered Model. DoD Model. ISO/OSI Model

Chapter 2 Application Layer

M2-R4: INTERNET TECHNOLOGY AND WEB DESIGN

EECS 3214: Computer Network Protocols and Applications

Hypertext Transport Protocol

Chapter 2. Application Layer. Chapter 2: Application Layer. Application layer - Overview. Some network apps. Creating a network appication

1.1 A Brief Intro to the Internet

CS 43: Computer Networks. HTTP September 10, 2018

Internet Architecture. Web Programming - 2 (Ref: Chapter 2) IP Software. IP Addressing. TCP/IP Basics. Client Server Basics. URL and MIME Types HTTP

EE 122: HyperText Transfer Protocol (HTTP)

Lecture 04: Application Layer (Part 01) Principles and the World Wide Web (HTTP) Dr. Anis Koubaa

Applications & Application-Layer Protocols: The Web & HTTP

COMPUTER NETWORK. Homework #1. Due Date: March 29, 2017 in class

CS WEB TECHNOLOGY

CCNA Exploration Network Fundamentals. Chapter 03 Application Functionality and Protocols

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Network Applications Principles of Network Applications

Computer Network 2015 Mid-Term Exam.

Shankersinh Vaghela Bapu Institue of Technology

SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

CPET 499/ITC 250 Web Systems. Topics

2. Introduction to Internet Applications

1-1. Switching Networks (Fall 2010) EE 586 Communication and. September Lecture 10

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

HyperText Transfer Protocol

The Internet, Intranets, and Extranets Chapter 7

Application Layer Network Layer

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 4

Web Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.

Chapter 2: Application layer

Design for Testability of Web Applications Manager s Perspective

SAS/IntrNet 9.3. Overview. SAS Documentation

Application Layer: The Web and HTTP Sec 2.2 Prof Lina Battestilli Fall 2017

CSC358 Week 2. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Lecture 7b: HTTP. Feb. 24, Internet and Intranet Protocols and Applications

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space provided.

Introduc)on to Computer Networks

Session 9. Deployment Descriptor Http. Reading and Reference. en.wikipedia.org/wiki/http. en.wikipedia.org/wiki/list_of_http_headers

INTERNET DEVELOPERS TOOLKIT FOR G

WEB TECHNOLOGIES CHAPTER 1

Technology in Action. Chapter 13 Behind the Scenes: The Internet: How It Works Prentice-Hall, Inc.

Objectives. Connecting with Computer Science 2

How A Website Works. - Shobha

AY SECOND TERM Technology Education Revision Sheet

Chapter 2 Layer Architecture of Network Protocols. School of Info. Sci. & Eng. Shandong Univ.

Internet Client-Server Systems 4020 A

Web Engineering (CC 552)

TCP / IP. Isidro Martinez Director, Latin Amèrica

Tennessee. Trade & Industrial Course Web Page Design II - Site Designer Standards. A Guide to Web Development Using Adobe Dreamweaver CS3 2009

FBCA-03 April Introduction to Internet and HTML Scripting (New Course)

From administrivia to what really matters

13. Internet Applications 최양희서울대학교컴퓨터공학부

Application Layer Protocols

STUDY GUIDE CHAPTER 7

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

Global Servers. The new masters

Connecting with Computer Science Chapter 5 Review: Chapter Summary:

Jeff Offutt SWE 642 Software Engineering for the World Wide Web

BRA BIHAR UNIVERSITY, MUZAFFARPUR DIRECTORATE OF DISTANCE EDUCATION

INTERNET & WORLD WIDE WEB (UNIT-1) MECHANISM OF INTERNET

The Application Layer: & SMTP

APPLICATION LAYER APPLICATION LAYER : DNS, HTTP, , SMTP, Telnet, FTP, Security-PGP-SSH.

Guide to TCP/IP, Third. Chapter 6: Basic TCP/IP Services

Chapter 4: Networking and the Internet. Figure 4.1 Network topologies. Network Classifications. Protocols. (continued)

Chapter 4: Networking and the Internet

Chapter 2: Application Layer. Chapter 2 Application Layer. Some network apps. Application architectures. Chapter 2: Application layer

HTTP Protocol and Server-Side Basics

Transcription:

Chapter 27 WWW and HTTP 27.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

27-1 ARCHITECTURE The WWW today is a distributed client/server service, in which a client using abrowser can access a service using a server. However, the service provided is distributed over many locations called sites. Topics discussed in this section: Client (Browser) Server Uniform Resource Locator Cookies 27.2

27.3 Figure 27.1 Architecture of WWW

27.4 Figure 27.2 Browser

27.5 Figure 27.3 URL

27-2 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 at which h the contents t of the document are determined. Topics discussed in this section: Static Documents Dynamic Documents Active Documents 27.6

27.7 Figure 27.4 Static document

27.8 Figure 27.5 Boldface tags

27.9 Figure 27.6 Effect of boldface tags

Figure 27.7 Beginning and ending tags 27.10

Figure 27.8 Dynamic document using CGI 27.11

Figure 27.9 Dynamic document using server-site script 27.12

Note Dynamic documents are sometimes referred to as server-site dynamic documents. 27.13

Figure 27.10 Active document using Java applet 27.14

Figure 27.11 Active document using client-site script 27.15

Note Active documents are sometimes referred to as client-site it dynamic documents. 27.16

27-3 HTTP The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web. HTTP functions as a combination of FTP and SMTP. Topics discussed in this section: HTTP Transaction Persistent Versus Nonpersistent Connection 27.17

Note HTTP uses the services of TCP on well- known port 80. 27.18

Figure 27.12 HTTP transaction 27.19

Figure 27.13 Request and response messages 27.20

Figure 27.14 Request and status lines 27.21

27.22 Table 27.1 Methods

27.23 Table 27.2 Status codes

27.24 Table 27.2 Status codes (continued)

Figure 27.15 Header format 27.25

27.26 Table 27.3 General headers

27.27 Table 27.4 Request headers

27.28 Table be27.5 Response se headers

27.29 Table 27.6 Entity headers

Example 27.1 This example retrieves a document. 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 bd 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 (see Figure 27.16). 27.30

Figure 27.16 Example 27.1 27.31

Example 27.2 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 bd 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 27.17). 27.32

Figure 27.17 Example 27.2 27.33

Example 27.3 HTTP uses ASCII characters. A client can directly connect to a server using TELNET, which logs into port 80 (see next slide). The next three lines show that the connection is successful. We then type three lines. The first shows the request line (GET method), the second is the header (defining i the host), the third is a blank, terminating the request. The server response is seven lines starting with the status line. The blank line at the end terminates the server response. The file of 14,230 lines is received after the blank line (not shown here). The last line is the output by the client. 27.34

27.35 Example 27.3 (continued)

Note HTTP version 1.1 specifies a persistent connection by default. 27.36