WWW and HTTP King Fahd University of Petroleum & Minerals

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.
DT228/3 Web Development WWW and Client server model.
PART 6 Application Layer
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
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.
The Internet Useful Definitions and Concepts About the Internet.
Introduction to Web Database Processing
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)
1 The World Wide Web Architectural Overview Static Web Documents Dynamic Web Documents HTTP – The HyperText Transfer Protocol Performance Enhancements.
Chapter 27 HTTP and WWW.
Definitions, Definitions, Definitions Lead to Understanding.
Introduction to Web Interface Technology (CSE2030)
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
INTRODUCTION TO WEB DATABASE PROGRAMMING
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
HTTP; The World Wide Web Protocol
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
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.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
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.
1 The World Wide Web Architectural Overview Static Web Documents Dynamic Web Documents HTTP – The HyperText Transfer Protocol Performance Enhancements.
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. Chapter 22 World Wide Web and HTTP.
Lec- 26 Domain Name System (DNS) Muhammad Waseem Iqbal.
National College of Science & Information Technology.
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.
CX Introduction to Web Programming
Web Programming Language
Distributed Control and Measurement via the Internet
Tonga Institute of Higher Education IT 141: Information Systems
Remote Logging, Electronic Mail, and File Transfer
Section 6.3 Server-side Scripting
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transport Protocol
Web Technology and DBMSs
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Web Database By Rimpi Suman 1 1 Unit-6.
Chapter 27 WWW and HTTP.
Tonga Institute of Higher Education IT 141: Information Systems
Introduction to Servlets
Tonga Institute of Higher Education IT 141: Information Systems
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:

WWW and HTTP King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science Department ICS 343 Fundamentals of Computer Networks WWW and HTTP These slides are based on: Chapter 27, Data Communications and Networking, 4th Edition

Topics discussed in this section: 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. Topics discussed in this section: Client (Browser) Server Uniform Resource Locator Cookies

Figure 27.1 Architecture of WWW

Browser (Client) Browser has three parts Controller: receives input from keyboard or mouse and uses the client programs to access the document. Client program Interpreters: After the document has been accessed, the controller use one of the interpreters to display the document on the screen; HTML or Java.

Server The web page is stored at the server Each time a client request arrives, the corresponding document is sent to the client To improve efficiency, servers normally store requested files in a cache in memory A server can also become more efficient through multithreading or multiprocessing

Figure 27.3 URL The Uniform Resource Locator (URL) is a standard for specifying any kind of information on the Internet.

Cookies WWW designed to be stateless (no relationships between requests and responses, however, websites need other functions like: Allowing access to registered users Some Websites are used as electronic stores and need to keep track of shopping carts Some websites are used as portals Some websites need to advertise In order to achieve these functions, we need cookies that store information to maintain relations between requests and responses

HTML (Hypertext Markup Language) is a language for creating Web pages. Static Documents Static Documents are fixed-content documents created and stored in a server. Clients can get only a copy of the documents. Clients use browser programs to display documents. HTML (Hypertext Markup Language) is a language for creating Web pages.

Figure 27.4 Static document

Figure 27.5 Boldface tags

Figure 27.6 Effect of boldface tags

Figure 27.7 Beginning and ending tags

Dynamic Documents Dynamic Documents are created by a Web server whenever a browser requests the document. Web server runs application programs or scripts. Contents of dynamic documents vary from one request to another. Example: Retrieval of time and date from a server

Dynamic Documents CGI (Common Gateway Interface) is a technology that creates and handles dynamic documents. CGI is a set of standards defining how a dynamic document is written, how data are input to the program and how the output result is used. It allows programmers to use several languages like C, C++, Perl … etc CGI Inputs: Data in the URL or in a form. CGI Outputs: Text, HTML or variety of other things like pictures.

Figure 27.8 Dynamic document using CGI

Dynamic Documents Scripting Technology for Dynamic Documents CGI is inefficient if part of the dynamic document is fixed and not changing from request to another. Example: In a spare part store, a part might have variable prices over time, but its picture and specification are more likely to stay fixed. Solution: Create fixed part of the document using HTML and embed a script. Many scripting languages are available, like Hypertext Processor (PHP), Java Server Pages (JSP), Active Server Pages (ASP) and others.

Figure 27.9 Dynamic document using server-site script

Active Documents are programs or scripts to be run at the client-site. Example: Creation of animation at client side. Java Applets are programs written in Java on the server, compiled and ready for execution. It is in binary format. JavaScripts are scripts embedded -in source code format- into HTML documents to be executed at client-site.

Figure 27.10 Active document using Java applet

Figure 27.11 Active document using client-site script

It can jump from one document to another Functions like FTP and SMTP HTTP Hypertext Transfer Protocol (HTTP) is used mainly to access data on the World Wide Web. It can jump from one document to another Functions like FTP and SMTP Transfers files and uses services of TCP; Uses TCP port 80 Transfer data between client and server HTTP information is read and interpreted by HTTP server and HTTP client

HTTP HTTP itself is a stateless protocol (doesn't maintain relationships between requests) Client initializes the transaction by sending a request message. Server replies by sending a response. Two types of HTTP messages Request Response Figure 27.12 HTTP transaction

HTTP Messages Figure 27.13 Request and response messages

Request and Status Lines Figure 27.14 Request and status lines

Request Type Table 27.1 Methods

Status Code Table 27.2 Status codes

Table 27.2 Status codes (continued)

Header Header exchanges additional information between the client and the server. Example: Client asking document to be sent in a special format, or the server send extra information about the document Figure 27.15 Header format

Types of Headers General header provides general information about the message Can be present in both request and response messages Request header specifies client's configuration and preferred document format Can be present in request messages only Response header specifies server's configuration and special information about the request Can be present in response messages only Entity header gives information about the body of the document. Mostly present in response messages, but can appear in request messages too

Table 27.3 General headers

Table 27.4 Request headers

Table 27.5 Response headers

Table 27.6 Entity headers

Figure 27.16 Example 27.1

Figure 27.17 Example 27.2

Non-persistent Connection HTTP prior to version 1.1 specified non-persistent connection, but persistent connection is the default in version In a non-persistent connection: One TCP connection is made for each request/response: Client opens TCP connection and sends a request Server sends the response and closes the connection Client reads data until EOF then closes connection For N different pics in different files, connection must be opened and closed N times High overhead on the server Server needs N different buffers and requires a slow start procedure

Persistent Connection In a persistent connection: Server leaves the connection open for more requests after sending a response A server can close a connection at the request of a client or a time-out has been reached Server usually sends the length of the data with each response In case server doesn't know the length of data (e.g. if a document to be sent is created dynamically or actively) it will inform client that length is unknown and closes connection after sending all data, client at this case would know that the end of data has been reached.

Proxy Server HTTP supports proxy servers A proxy server is a computer that keeps copies of responses to recent requests HTTP client sends a request to proxy server Proxy server checks its cache, if response is not stored, the proxy sends the request to the corresponding server Proxy servers reduce the load on original servers, they decrease traffic and improve latency Client must be configured to access the proxy server instead of target server

The end Important to do at home : - read chapter 27 of the textbook