Beruflich Dokumente
Kultur Dokumente
|
|
|
2
TCP
6
"&
Why domain names?
Form: host-name.domain-names
There maybe 2, 3 or more domain names.
First domain appears to the right of the hostname, is
the domain of which the host is a part
Second domain gives the domain of which the first
domain is a part
Last domain specifies the type of organization in
which the host resides, largest domain in the site¶s
name
Example movies.comedy.abc.com
7
"&
Examples of last domain names
± COM«EDU..NET..GOV specify ???
± Abbreviation for the country, µmy¶ for Malaysia, µse¶
for Sweden and so forth
Fully qualified domain name - the host name and all
of the domain names
DNS servers convert fully qualified domain names to
IPs
Problem: By the mid-1980s, several different
protocols had been invented and were being used
on the Internet, all with different user interfaces
(Telnet, FTP,mailto)
1
2
9
à à"à"|$ààà%
A possible solution to the proliferation of different
protocols being used on the Internet
Origins
± Tim Berners-Lee at CERN proposed WWW in 1989
± Purpose: to allow scientists to have access to many
databases of scientific work through their own computers
± Document form: hypertext
Units of information on WWW
± Pages? Documents? Resources?
± We¶ll call them documents
Documents ± sometimes just text, usually with
embedded links to other documents, also include
images, sound, etc.
10
à à"à"|$ààà%
Hypermedia ± document contains non-textual information,
example?
WWW or Internet???
± The difference«..
The World Wide Web (also referred to as www or W3 or the
web) is an internet client-server distributed information and
retrieval system for world-wide hypertext linking of
multimedia documents. The web is based upon the hypertext
transfer protocol (HTTP) that transfers hypertext documents
across a varied array of computer systems.
The WWW uses one of the protocols, HTTP, that runs on the
Internet, there are several others such as telnet, mailto, etc.
11
à"|| à&"
Mosaic (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
Browsers are clients that always initiate, servers
react
± Example : browser requests document from server, the
server locates the doc and then sends it to the browser
± Sometimes servers require responses..example?
Most requests are for existing documents, using
HTTP but some requests are for program execution,
with the output being returned as a document
Examples of current browsers«?
Mosaic Browser
14
à"|&" '"
Provide responses to browser requests, either
existing documents or dynamically built documents
Browser-server connection is now maintained
through more than one request-response cycle
Subsequent requests for certain documents need not
be sent to the server, why??
Example of web servers??
15
(
URL stands for Uniform Resource Locator
General form -> scheme:object-address
± The scheme is often a communications protocol, such as
telnet or ftp
± For the http protocol, the object-address is fully qualified
domain name/doc path
Host name may include a port number, as in
anusuriya:80 (80 is the default) Port Number
URLs cannot include spaces or any of a collection of
other special characters (semicolons, colons, ...), so
how to include a space or one of disallowed special
characters in a URL????
16
(
Example URL of a specified document
( http://www.tooot.com/education/resume.html
How will be the above URL if the specified document is a
directory rather than single document..?
What is the default file name searched by the server?
Server also can be configured to search for files with other
names (we will learn about this during lab session )
URL vs URI vs URN , give an example, any idea?
URL http://www.gleaners.org/faq.html
URN www.gleaners.org/faq.html#Q04
URI http://www.gleaners.org/faq.html#Q04
17
"
MIME stands for Multipurpose Internet Mail
Extensions (MIME)
Originally developed for email
Used to specify to the browser the form of a file
returned by the server (attached by the server to
the beginning of the document)
Form: type/subtype
± Examples: text/plain, text/html, image/gif, image/jpeg
Server gets type from the requested file name¶s suffix
± *.html implies text/html
Browser gets the type explicitly from the server
18
"
Experimental types
± Subtype begins with x-, example, video/x-msvideo
± Experimental subtypes are added to MIME specification
stored in user¶s Web server.
/1.100
ate:on,un001::4î
erver:Apache/1.3.Unix)Red-at/Linux)
Last-modified:ed,un0018:1:î
Accept-ranges:bytes
Content-length:
Connection:close
Content-type:text/html
<L>
<B>
....
24
&! # 0&
Client-side scripting
± Validates user input
± Accesses the browser
± Enhances Web pages with ActiveX® controls, applets, etc.
± Manipulates browser documents
Client-side validation
± Reduces number of requests that need to be passed to server
Client-side scripting limitations
± Browser dependency
± Viewable to users through View Source command
Example of Client-side scripting ± JavaScript, VBScripts
25
&! # 0&
Server-side scripts
± Provides programmers greater flexibility
± Generates custom responses for clients
± Contains greater programmatic capabilities than
client-side equivalents
± Has access to server-side software that extend
server functionality
± Example of server-side scripting ± ASP, PHP,
JSP, CGI/Perl