1.2. Web Basics - COMP9321 Web Application Engineering 11s1...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP9321 Web Application Engineering 11s1 Service Oriented Computing Group, CSE, UNSW Week 1 Topic: Web Essentials - Clients, Servers and Communication References used for the Lecture: Web Application Architecture - Shklar and Rosen (CSE, UNSW) COMP9321, 11s1 Week 1 1 / 24
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Basic Web Architecture: Universal Readership . .. (CSE, UNSW) COMP9321, 11s1 Week 1 2 / 24
Background image of page 2
Web Essentials - Clients, Servers and Communication Essential elements? Web browsers to surf the Web The server systems to supply information to the browsers The computer networks supporting browser-server communication the start of the Internet backbone:- (CSE, UNSW) COMP9321, 11s1 Week 1 3 / 24
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Building Blocks of the Web (Shklar and Rosen, pg. 31) Three basic components devised by Tim Berners-Lee: A Uniform Notation Scheme for addressing resources (URL) A protocol for transporting messages (HTTP) A markup language for formatting hypertext documents (HTML) (CSE, UNSW) COMP9321, 11s1 Week 1 4 / 24
Background image of page 4
Web Essentials - URL General notation associated with a URL scheme://host[:port]/path/. ../[;url-params][?query-string] [#anchor] scheme - underlying protocol to be used host[:port] - hostname or IP address of the web server. For HTTP, the default port is 80. path - Path to the resource from the root directory of the web server. url-params - Optional name=value pairs - used mainly for JSESSIONID query-string - string of name=value pairs separated by ampersand (&) or semi-colons anchor - reference to a position marker in the requested document (CSE, UNSW) COMP9321, 11s1 Week 1 5 / 24
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Web Essentials - HTTP The basic structure of HTTP communication follows a request-response ” model. An HTTP interaction is initiated by a client sending a request message to the server; the server is then expected to generate a response message. The format of request and response messages is dictated by HTTP. HTTP is stateless - each request-response pair is a separate interaction There’s no way to batch related requests (CSE, UNSW) COMP9321, 11s1 Week 1 6 / 24
Background image of page 6
Web Essentials - HTTP (CSE, UNSW) COMP9321, 11s1 Week 1 7 / 24
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Web Essentials - HTTP HTTP Request (from browser to server) : It is composed of Request Line + Header + (additional data) Syntax for the Request Line: Request-Method sp Request-URI sp HTTP-version CRLF eg, GET http://www.smh.com.au/index.html HTTP/1.1 There must be a newline (CRLF) between the header and the additional data part. Common Request methods: GET, POST, HEAD . .. Request header: eg., client host IP, browser info, etc. Additional data (body): parameters (POST), block of data (CSE, UNSW) COMP9321, 11s1 Week 1 8 / 24
Background image of page 8
On Request Header Fields POST /servlet/EchoHttpRequest HTTP/1.1 host: www.example.org:8080 user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 accept: text/xml, application/xml, application/xhtml+xml, image/png, image/jpeg, image/gif;q=0.2, */*;q=0.1 accept-language: en-us, en:q=0.5 accept-encoding: gzip, deflate accept-character: ISO-8859-1, utf-8;q=0.7 connection: keep-alive keep-alive: 300 content-type: application/x-www-form-urlencoded content-length: 13 request body starts . ..
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 21

1.2. Web Basics - COMP9321 Web Application Engineering 11s1...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online