Web Application Engineering: Lecture 1 - Introduction Shahbaz Ahmad
Web Application Engineering: Lecture 1 - Introduction Shahbaz Ahmad
Lecture 1 – Introduction
Shahbaz Ahmad
Accessing a Website
Internet
connection
• Web pages (text files) and other needed files (e.g. images) are stored as
files on the web server and are retrieved as needed in response to HTTP
requests
Client Server
HTTP request
HTTP response
Dynamic Websites
• Does not have web pages stored on the server in the same form as the
user will view them. Instead, the web page content changes
automatically and/or frequently based on certain criteria.
• Use client-side scripting to change interface behaviors within a specific web page, in
response to mouse or keyboard actions or at specified timing events. In this case the
dynamic behavior occurs within the presentation (JavaScript , VBScript & ActionScript),
• Use server-side scripting to change the supplied page source between pages, adjusting the
sequence or reload of the web pages or web content supplied to the browser. Server
parameters in the URL, the type of browser being used, the passage of time, or a database or
• A Web browser is a software application which enables a user to display and interact with text,
images, videos, music, games and other information typically located on a Web page at a Web
• Text and images on a Web page can contain hyperlinks to other Web pages at the same or
• Web browsers allow a user to quickly and easily access information provided on many Web
• Web browsers format HTML information for display, so the appearance of a Web page may
Type the URL in the web browser. If the URL contains a domain name,
the browser first connects to a domain name server and retrieves the
corresponding IP address for the web server.
The web browser connects to the web server and sends an HTTP
request (via the protocol stack) for the desired web page.
The web server receives the request and checks for the desired page.
If the page exists, the web server sends it. If the server cannot find the
requested page, it will send an HTTP 404 error message. (404 means
'Page Not Found')
Brower - Server Communications
The web browser receives the page back and the connection is closed.
The browser then parses through the page and looks for other page
elements it needs to complete the web page. These usually include
images, applets, etc.
When the browser has finished loading all images, applets, etc. the
page will be completely loaded in the browser window.
Universal Resource Location (URL)
http://lms.ntu.edu.pk/moodle/course/view.php?id=146
Protocol (Scheme)
Universal Resource Location (URL)
http:// lms.ntu.edu.pk/moodle/course/view.php?id=146
Host Name
Universal Resource Location (URL)
http:// lms.ntu.edu.pk/moodle/course/view.php?id=146
Port No ?!??!
Universal Resource Location (URL)
http://lms.ntu.edu.pk/moodle/course/view.php?id=146
Path
Domain Names and Address
Resolution
• To connect from computer A to computer B an IP address is used
• DNS servers are used to host the DNS database and software to
use it
• If the DNS server can not resolve the domain request (because it
does not have it in its part of the database) then it redirects the
request to a different DNS server
Hypertext Transfer Protocol (HTTP)
to supplement that text with interactive forms, embedded images, and other
objects.
• HTML is written in the form of "tags" that are surrounded by angle brackets.
• HTML can also describe, to some degree, the appearance and semantics of a
document, and can include embedded scripting language code (such as JavaScript)
that can affect the behavior of Web browsers and other HTML processors.
HTML
Ansar Javed::WAD-F16
Interesting Stuff to Study
• Browser Plug-ins
• Cookies