Académique Documents
Professionnel Documents
Culture Documents
CS 640
WWW Background
1989-1990 Tim Berners-Lee invents the World Wide Web at CERN
Means for transferring text and graphics simultaneously Client/Server data transfer protocol
Communication via application level protocol System ran on top of standard networking infrastructure
WWW Components
Structural Components
Clients/browsers to dominant implementations Servers run on sophisticated hardware Caches many interesting implementations Internet the global infrastructure which facilitates data transfer
Semantic Components
Hyper Text Transfer Protocol (HTTP) Hyper Text Markup Language (HTML)
eXtensible Markup Language (XML)
CS 640
CS 640
WWW Structure
Clients use browser application to send URIs via HTTP to servers requesting a Web page Web pages constructed using HTML (or other markup language) and consist of text, graphics, sounds plus embedded files Servers (or caches) respond with requested Web page
Or with error message
The entire system runs over standard networking protocols (TCP/IP, DNS,)
CS 640 6
Instance: http://www.foo.com/index.html
Protocol, server, resource
HTTP Basics
Protocol for client/server communication
The heart of the Web Very simple request/response protocol
Client sends request message, server replies with response message
CS 640
CS 640
10
CS 640
12
HTTP Headers
Both requests and responses can contain a variable number of header fields
Consists of field name, colon, space, field value 17 possible header types divided into three categories
Request Response Body
Pipelining
Pack as much data into a packet as possible Requires length field(s) within header May or may not reduce packet traffic or increase performance
Page structure is critical
CS 640 16
HTML Basics
Hyper-Text Markup Language
A subset of Standardized General Markup Language (SGML) Facilitates a hyper-media environment
Embedded links to other documents and applications
Documents use elements to mark up or identify sections of text for different purposes or display characteristics Mark up elements are not seen by the user when page is displayed Documents are rendered by browsers NOTE: Not all documents in the Web are HTML! Most people use WYSIWYG editors (MS Word) to generate HTML
CS 640 17
HTML Example
<HTML> <HEAD> <TITLE> PBs HomePage </TITLE> </HEAD> <BODY> <CENTER><IMG SRC = bad_picture.gif ALT = ><BR></CENTER> <P><CENTER><H1>UW Computer Science Department</H1></CENTER> Welcome to my goofy HomePage! <A HREF = http://www.cs.wisc.edu/~pb/mydogs_page.html> Spots Page </A> </BODY> </HTML>
CS 640
18