ITT501 Chapter 3
ITT501 Chapter 3
(ITT501)
CHAPTER 3 –
WEB ORGANIZATION
• Overview of Web technologies
• Nature of the Client/Server
relationship
• Characteristic of web servers
• Characteristic of web client/browser
• Support tools for web application
creation and management
• Publishing information and
applications
Overview of Web Technologies
• Web Server
– The server is where the web application code is typically stored.
• Web Browser
– As the interpreters of the Web, browsers request information and
on receiving a response, display the web page in a human-
readable format.
• Frameworks
– Frameworks are built to make building and working with
programming languages easier. Frameworks typically take all the
difficult, repetitive tasks in setting up a new web application and
either do them for you or make them easier to complete.
Overview of Web Technologies
• Programming languages
– Programming languages allow you to
communicate with computers and tell them what
to do.
Overview of Web Technologies
• Databases
– Databases are where data is stored.
– Two types: SQL and NoSQL.
– SQL provides more structure, which helps with
making sure all the data is correct and validated.
NoSQL provides a lot of flexibility for building and
maintaining applications.
• Protocols (more in Chapter 4)
– Protocols are standardized instructions for how to
pass information back and forth between
computers and devices.
Overview of Web Technologies
• Libraries
– Libraries are groups of code snippets that enable a large
amount of functionality without having to write it all.
– Libraries typically ensure code is efficient and works well
across browsers and devices (though this is not always the
case).
• API (more in Chapter 4)
– An application programming interface is created by the
developer of an application to allow other developers to use
some of the application’s functionality without sharing code.
– Developers expose “end points,” which are like inputs and
outputs for the application. API access can be controlled with
API keys.
Overview of Web Technologies
• Web hosting
– rented file space on a hosting company's web
server.
– It allows web application to be access by user.
Nature of Client Server Relationship
Client-Server Architecture
HELPER APPLICATIONS
• A helper application is an external viewer program
launched to display content retrieved using a web browser.
Some common examples include Windows Media Player
and QuickTime Player for playing streaming content.
• Unlike a plugin(whose full code is included into browser
code), a small line is added to the browser code to tell it to
open a certain helper application in case it encounters a
certain file format.
• This provides a simple mechanism that allows the browser
functionality to be extended by allowing it to invoke external
applications (Adobe Reader) to display documents.
User-server state: cookies
example:
many Web sites use
cookies • Susan always access
four components: Internet from PC
1)cookie header • visits specific e-
line of HTTP commerce site for first
time
response
message • when initial HTTP
requests arrives at
2) cookie header site, site creates:
line in next
HTTP request – unique ID
message – entry in backend
3) cookie file database for ID
kept on user’s Application Layer 2-17
Cookies: keeping “state” (cont.)
client server
ebay 8734
usual http request msg Amazon server
cookie file creates ID
usual http response
1678 for user create backend
ebay 8734
set-cookie: 1678 entry database
amazon 1678
usual http request msg
cookie: 1678 cookie- access
specific
usual http response msg action