Chap 01
Chap 01
Internet
Origins:
1960s
U.S. Department of Defence (DoD) became interested in developing a
new large-scale computer network
The purposes of this network were communications, program sharing,
and remote computer access for researchers working on defence-
related contracts.
The DoD’s Advanced Research Projects Agency (ARPA) funded the
construction of the first such network. Hence it was named as
ARPAnet.
The primary early use of ARPAnet was simple text-based
communications through e-mail
Internet
HTML data
Web Browsers
- Mosaic - NCSA (Univ. of Illinois), in early 1993 - First to use a GUI, led
to explosion of Web use - Initially for X-Windows, under UNIX, but was
ported to other platforms by late 1993
- But some requests are for program execution, with the output being
returned as a document
The Internet and the WWW
The WWW is one service running over the Internet -
Before the WWW
The Internet was used by scientists, researchers, large
(usually governmental) organisations
Commerce on the Internet was almost unknown
The WWW is now the major conduit to the Internet
and the major vehicle for e-commerce, but this is not
what it was designed for!
Hypertext
“Non-linear reading and writing”
Ted Nelson
A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text A page
of text
A page
of text
A page
of text A page
of text
A page
of text A page
A page of text
of text
A page
of text
Application Servers Vs Web Servers
Web Server Application Server
A Web server handles the HTTP protocol While an application server exposes
business logic to client applications
When the Web server receives an HTTP through various protocols like HTTP,
request, it responds with an HTTP TCP-IP etc.
response, such as sending back an
HTML page. All the web servers mainly deals with
sending HTML for displaying to a Web
To process a request, a Web server may browser.
respond with a static HTML page or
image, send or redirect, or delegate The application server is used to run
the dynamic response generation to business logic or dynamically
some other program such as CGI generating presentation code.
scripts, JSPs (JavaServer Pages),
servlets, ASPs (Active Server Pages),
server-side JavaScripts, or some
other server-side technology.
Multipurpose Internet Mail Extensions (MIME)
as the Web moves towards online services and e-commerce, Web pages
must also provide dynamic content
pages must be fluid, changeable (e.g., rotating banners)
must be able to react to the user's actions, request and process info, tailor services
JavaScript
a scripting language for Web pages, developed by Netscape in 1995
uses a C++/Java-like syntax, so familiar to programmers, but simpler
good for adding dynamic features to Web page, controlling forms and GUI
see www.creighton.edu/~davereed/Memory
Java applets
can define small, special-purpose programs in Java called applets
provides full expressive power of Java (but more overhead)
good for more complex tasks or data heavy tasks, such as graphics
see www.creighton.edu/~davereed/csc107.F03/Labs/MontePI.html
20
Server-side programming
can store and execute program on Web server, link from Web page
more complex, requires server privileges, but secure
CGI programming
programs can be written to conform to the Common Gateway Interface
when a Web page submits, data from the page is sent as input to the CGI program
CGI program executes on server, sends its results back to browser as a Web page
good if computation is large/complex or requires access to private data
21
Web Programmer’s Toolbox
HTML/XHTML
CSS
XML
JavaScript
PHP
A meta-markup language
Used to create a new markup language for
a particular purpose or area
Because the tags are designed for a
specific area, they can be meaningful
No presentation details
A simple and universal way of representing
data of any textual kind
JavaScript