Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved. 0-13-185603-0 Web Essentials: Clients, Servers,

Slides:



Advertisements
Similar presentations
PowerPoint presentation of first 25 pages of instructional manual Edith Fabiyi Essentials of Internet Access.
Advertisements

1 Lecture 1 Web Essentials: Clients, Servers, and Communication.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Chapter 1 Web Essentials: Clients, Servers, and Communication
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 1 Web Essentials: Clients,
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
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.
Browser Basics Tutorial 2 Introduction to Microsoft Internet Explorer.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Internet – Part II. What is the World Wide Web? The World Wide Web is a collection of host machines, which deliver documents, graphics and multi-media.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
The Internet 8th Edition Tutorial 1 Browser Basics.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
Web Essentials: Clients, Servers, and Communication CSI 3140 WWW Structures, Techniques and Standards.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
INTRODUCTION TO WEB DATABASE PROGRAMMING
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Human-Computer Interface Course 5. ISPs and Internet connection.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Lesson 2 — The Internet and the World Wide Web
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
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.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Postacademic Interuniversity Course in Information Technology – Module C1p1 Contents Data Communications Applications –File & print serving –Mail –Domain.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
World Wide Web Hypertext model Use of hypertext in World Wide Web (WWW) WWW client-server model Use of TCP/IP protocols in WWW.
 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.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 1 1 Browser Basics Introduction to the Web and Web Browser Software Tutorial.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Web Essentials: Clients, Servers, and Communication CSI 3140 WWW Structures, Techniques and Standards.
XP New Perspectives on the Internet, 4e Tutorial 2 1 Browser Basics Introduction to Microsoft Internet Explorer and Netscape Navigator.
Chapter 6 Server-side Programming: Java Servlets
1 Welcome to CSC 301 Web Programming Charles Frank.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
1 Chapter Overview Creating Web Sites and FTP Sites Creating Virtual Directories Managing Site Security Troubleshooting IIS.
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.
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.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 1 Web Essentials: Clients,
JavaScript and Ajax (Internet Background) Week 1 Web site:
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
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.
Web Essentials: Clients, Servers, and Communication
Web fundamentals: Clients, Servers, and Communication
Chapter 1 Web Essentials: Clients, Servers, and Communication
JavaScript and Ajax (Internet Background)
Warm Handshake with Websites, Servers and Web Servers:
CNIT 131 Internet Basics & Beginning HTML
Evolution of Internet.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
Chapter 1 Web Essentials: Clients, Servers, and Communication
Web Page Concept and Design :
Presentation transcript:

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Essentials: Clients, Servers, and Communication Reference from: Web Technologies Textbook By JEFFREY C. JACKSON

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved World Wide Web Originally, one of several systems for organizing Internet-based information –Competitors: WAIS, Gopher, ARCHIE Distinctive feature of Web: support for hypertext (text containing links) –Communication via Hypertext Transport Protocol (HTTP) –Document representation using Hypertext Markup Language (HTML)

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved World Wide Web The Web is the collection of machines (Web servers) on the Internet that provide information, particularly HTML documents, via HTTP. Machines that access information on the Web are known as Web clients. A Web browser is software used by an end user to access the Web.

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Hypertext Transport Protocol (HTTP) HTTP is based on the request-response communication model:HTTP –Client sends a request –Server sends a response HTTP is a stateless protocol: –The protocol does not require the server to remember anything about the client between requests.

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved HTTP Normally implemented over a TCP connection (80 is standard port number for HTTP) Typical browser-server interaction: –User enters Web address in browser –Browser uses DNS to locate IP address –Browser opens TCP connection to server –Browser sends HTTP request over connection –Server sends HTTP response to browser over connection –Browser displays body of response in the client area of the browser window

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved HTTP The information transmitted using HTTP is often entirely text Can use the Internet’s Telnet protocol to simulate browser request and view server response

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved HTTP $ telnet 80 Trying Connected to ( ). Escape character is ’^]’. GET / HTTP/1.1 Host: HTTP/ OK Date: Thu, 09 Oct :30:49 GMT … { Send Request { Receive Response Connect {

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved HTTP Request Uniform Resource Identifier (URI)URI –Syntax: scheme : scheme-depend-part Ex: In the scheme is http –Request-URI is the portion of the requested URI that follows the host name (which is supplied by the required Host header field) Ex: / is Request-URI portion of

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved URI URI’s are of two types: –Uniform Resource Name (URN)URN Can be used to identify resources with unique names, such as books (which have unique ISBN’s) Scheme is urn –Uniform Resource Locator (URL)URL Specifies location at which a resource can be found In addition to http, some other URL schemes are https, ftp, mailto, and file

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Client Caching A cache is a local copy of information obtained from some other source Most web browsers use cache to store requested resources so that subsequent requests to the same resource will not necessarily require an HTTP request/response –Ex: icon appearing multiple times in a Web page

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Client Caching Cache advantages –(Much) faster than HTTP request/response –Less network traffic –Less load on server Cache disadvantage –Cached copy of resource may be invalid (inconsistent with remote version)

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Clients Many possible web clients: –Text-only “browser” (lynx) –Mobile phones –Robots (software-only clients, e.g., search engine “crawlers”) –etc.

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Browsers First graphical browser running on general-purpose platforms: Mosaic (1993)

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Browsers Primary tasks: –Convert web addresses (URL’s) to HTTP requests –Communicate with web servers via HTTP –Render (appropriately display) documents returned by a server

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved HTTP URL’s Browser uses authority to connect via TCP Request-URI included in start line (/ used for path if none supplied) Fragment identifier not sent to server (used to scroll browser client area) host (FQDN) port authority path queryfragment Request-URI

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Browsers Standard features –Save web page to disk –Find string in page –Fill forms automatically (passwords, CC numbers, …) –Set preferences (language, character set, cache and HTTP parameters) –Modify display style (e.g., increase font sizes) –Display raw HTML and HTTP header info (e.g., Last- Modified) –Choose browser themes (skins) –View history of web addresses visited –Bookmark favorite pages for easy return

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Browsers Additional functionality: –Execution of scripts (e.g., drop-down menus) –Event handling (e.g., mouse clicks) –GUI for controls (e.g., buttons) –Secure communication with servers –Display of non-HTML documents (e.g., PDF) via plug-ins

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Servers Basic functionality: –Receive HTTP request via TCP –Map Host header to specific virtual host (one of many host names sharing an IP address) –Map Request-URI to specific resource associated with the virtual host File: Return file in HTTP response Program: Run program and return output in HTTP response –Map type of resource to appropriate MIME type and use to set Content-Type header in HTTP response –Log information about the request and response

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Servers httpd: UIUC, primary Web server c Apache: “A patchy” version of httpd, now the most popular server (esp. on Linux platforms) IIS: Microsoft Internet Information Server Tomcat:Tomcat –Java-based –Provides container (Catalina) for running Java servlets (HTML-generating programs) as back-end to Apache or IIS –Can run stand-alone using Coyote HTTP front-end

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Servers Some Coyote communication parameters: –Allowed/blocked IP addresses –Max. simultaneous active TCP connections –Max. queued TCP connection requests –“Keep-alive” time for inactive TCP connections Modify parameters to tune server performance

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Servers Some Catalina container parameters: –Virtual host names and associated ports –Logging preferences –Mapping from Request-URI’s to server resources –Password protection of resources –Use of server-side caching

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Tomcat Web Server HTML-based server administration Browse to and click on Server Administration link –localhost is a special host name that means “this machine”

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Secure Servers Since HTTP messages typically travel over a public network, private information (such as credit card numbers) should be encrypted to prevent eavesdropping https URL scheme tells browser to use encryption Common encryption standards: –Secure Socket Layer (SSL) –Transport Layer Security (TLS)TLS

Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Secure Servers Browser Web Server I’d like to talk securely to you (over port 443) Here’s my certificate and encryption data Here’s an encrypted HTTP request Here’s an encrypted HTTP response Here’s an encrypted HTTP request Here’s an encrypted HTTP response TLS/ SSL HTTP Requests HTTP Responses HTTP Requests HTTP Responses