2002 Prentice Hall. All Rights Reserved
2002 Prentice Hall. All Rights Reserved
6.1 Introduction
• Multi-tier applications
– Information tier
• Also called data tier or bottom tier
• Maintains data for application
– Middle tier
• Implements presentation logic and enforces business rules
• Controller logic processes client requests and retrieves data
– Client tier
• Also called top tier
• Application’s user interface
Fig. 6.2 Client interacting with server and Web server. Step 1: The request,
GET /books/downloads.html HTTP/1.1.
Fig. 6.2 Client interacting with server and Web server. Step 2: The HTTP response, HTTP/1.1 200 OK.
Fig. 6.4 Step 1: The GET request, GET /cgi-bin/fig06_02.py HTTP/1.1. (Part 1 of 4.)
Fig. 6.4 Step 2: The Web server starts the CGI script. (Part 2 of 4.)
Fig. 6.4 Step 3: The output of the script is sent to the Web server. (Part 3 of 4.)
Fig. 6.4 Step 4: The HTTP response, HTTP/1.1 200 OK. (Part 4 of 4.)
Function cgi.escape takes a string and returns a properly formatted XHMTL string
fig06_06.py
fig06_08.py
fig06_09.py
fig06_10.py
fig06_11.html
fig06_12.py