Web Server
Web Server
Outline
Introduction
HTTP Request Types
System Architecture
Client-Side Scripting versus Server-Side Scripting
Accessing Web Servers
Web Resources
1
Objectives
● In this lesson, you will learn:
● To understand a Web server’s functionality.
● To introduce Microsoft Internet Information Services
(IIS) and Apache Web server.
● To learn how to request documents from a Web
server.
2
9.1 Introduction
3
Web servers discussed in this chapter.
4
9.2 HTTP Request Types
● get :
● Get (retrieves) information from a server
● i.e: retrieve HTML document or image, fetch
search results
● Sends information as part of URL
● www.search-engine.com/search?name=value
● post:
● Post (sends) data to a server
● i.e: authentication information, form data.
● Sends form data as an HTTP message, not as
part of URL
5
● Browsers often cache (save on disk) Web pages
● Quickly reload the page (speed up browsing experience)
● Browser asks the server if the document has changed or
expired
● If not, the browser loads the document from the cache
6
9.3 System Architecture
7
Information tier (data or
Client tier (top tier) Middle tier
bottom tier)
8
9.4 Client-Side Scripting versus Server-Side
Scripting
● Client-side scripts
● Validate user input
● Reduce requests needed to be passed to server
● Access browser
● JavaScipt, VBScript
● Server-side scripts
● Executed on server
● Generate custom response for clients
● Wide range of programmatic capabilities
● Access to server-side software that extends server
functionality 9
9.5 Accessing Web Servers
10
9.6 Web Resources
● www.microsoft.com/msdownload/ntoptionpack/askwiz.asp
● www.w3.org/Protocols
● www.apache.org
● httpd.apache.org
● httpd.apache.org/docs-2.0
● www.apacheweek.com
● linuxtoday.com/stories/18780.html
● www.iisanswers.com
● www.iisadministrator.com
11