1Computer Sciences Department. Web Design 3Computer Sciences Department.

Slides:



Advertisements
Similar presentations
4.01 How Web Pages Work.
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Chapter 1 © 2014 by Pearson Education A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
Layer 7- Application Layer
Chapter 1 © 2002 by Addison Wesley Longman, Inc. 1 Chapter 1 Sebesta: Programming the World Wide Web.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Introduction to Web Interface Technology (CSE2030)
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
COS 381 Internet/Intranet Programming DAY 1. © 2006 Pearson Addison-Wesley. All rights reserved. 1-2 Agenda Roll Call Introductions Blackboard Syllabus.
Introduction to Web Interface Technology (CSE2030)
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Lecture 4 Web browsers, servers and HTTP Boriana Koleva Room: C54
Linux Operations and Administration
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
G51WPS Web Programming and Scripting Boriana Koleva Room: C54 Phone:
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to Web Programming ICS213, 1 / 2011 Dr. Seung Hwan Kang.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Chapter 1: Introduction to Web
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Funded by DoD - Purpose:
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
Copyright © Curt Hill The Internet An Introduction.
Chapter 1 © 2005 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
Chapter 1 Fundamentals. © 2006 Pearson Addison-Wesley. All rights reserved A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and.
Chapter 1 © 2013 by Pearson A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For ARPA-funded.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
Chapter 1 © 2003 by Addison-Wesley, Inc. 1 Chapter 1 Fundamentals.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
CHAPTER 1 Internet & World Wide Web. Topics A Brief Introduction to the Internet The World Wide Web Web Browsers Web Servers Uniform Resource Locator.
Chapter 1 Fundamentals. © 2006 Pearson Addison-Wesley. All rights reserved A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and.
CS2043 Internet Visual Prog. / Appl. An introduction to Internet visual programming and applications. Major topics include object-oriented concepts, graphical.
Chapter 1 Fundamentals. Internet History Internet Protocols.
Chapter 1 © 2009 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Design A Brief Intro to the Internet Internet History Internet Protocols 2.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Fundamentals. A Brief Intro to the Internet - Origins - ARPAnet - late 1960s - Network reliability - For ARPA-funded research organizations - BITnet,
Chapter 1 © 2009 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
National College of Science & Information Technology.
Internet and World Wide Web Introduction to the Internet.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
CISC103 Web Development Basics: Web site:
CISC103 Web Development Basics: Web site:
Chapter 1 Fundamentals.
1.1 A Brief Intro to the Internet
1.1 A Brief Intro to the Internet
Web Servers (IIS and Apache)
1.1 A Brief Intro to the Internet
Presentation transcript:

1Computer Sciences Department

Web Design 3Computer Sciences Department

Internet History and Protocols Domain Name System Client and Server Web server Document root Uniform Resource Locator Hypertext Transfer Protocol Computer Sciences Department4 Objectives

5 Internet History Origins – ARPAnet - late 1960s and early 1970s Network reliability For ARPA-funded research organizations BITnet, CSnet - late 1970s & early 1980s and file transfer for other institutions – NSFnet Originally for non-DOD funded places Initially connected five supercomputer centers By 1990, it had replaced ARPAnet for non-military uses Soon became the network for all (by the early 1990s) - NSFnet eventually became known as the Internet Computer Sciences Department

6 What the Internet is: A world-wide network of computer networks At the lowest level, since 1982, all connections use TCP/IP TCP/IP hides the differences among devices connected to the Internet Computer Sciences Department

7 Internet Protocols Internet Protocol (IP) Addresses – Every node has a unique numeric address – Form: 32-bit binary number – New standard, IPv6, has 128 bits (1998) Organizations are assigned groups of IPs for their computers By the mid-1980s, several different protocols had been invented and were being used on the Internet, all with different user interfaces (Telnet, FTP, Usenet, mailto Computer Sciences Department

8 Internet Protocols What Is a 'Domain Name System '? Domain Name System, or “DNS”, is the recognized system for assigning addresses to Internet web servers.  The domain names keep the real technical IP address invisible to most viewers. Example: Internet domain names  Domain names are organized right to left, with general descriptors to the right, and specific descriptors to the left. “These descriptors are called "domains”  The "top level domains" (TLD, or parent domain ) is to the far right of a domain name. Mid level domains (children and grandchildren) are in the middle. The machine name, often "www", is to the far left. Levels of domains are separated by periods ("dots"). Computer Sciences Department

9 Domain name conversion Computer Sciences Department

10 Client and Server Clients and Servers are programs that communicate with each other over the Internet A Server runs continuously, waiting to be contacted by a Client – Each Server provides certain services – Services include providing web pages A Client will send a message to a Server requesting the service provided by that server – The client will usually provide some information, parameters, with the request Computer Sciences Department

11 The World-Wide Web Web or Internet?  The Web uses one of the protocols, http, that runs on the Internet. The internet is a collection of computers……….etc Web Browsers:  Browsers are clients - always initiate, servers react (although sometimes servers require responses). Most requests are for existing documents, using HyperText Transfer Protocol (HTTP) Web Servers:  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. All communications between browsers and servers use Hypertext Transfer Protocol (HTTP) Computer Sciences Department

12 Web Server Operation Details Web servers have two main directories: 1.Document root (servable documents) 2.Server root (server system software) Document root “is accessed indirectly by clients”, “localHost” – The document root is the folder where the website files for a domain name are stored. Example: “C:\wamp\www” – Virtual document root “VirtualHost” run multiple independent websites on the same machine – Instead of typing every time to view our site. just type and it works Computer Sciences Department Browsers :

Computer Sciences Department13 Proxy servers Web servers now support other Internet protocols as ftp…etc

Web Server Web Server Operation : Apache (open source, fast, reliable) Web Server Operation : IIS Operation is maintained through a program with a GUI interface 14Computer Sciences Department

URL 15 General form: scheme:object-address  The scheme is the communication protocol.  These protocols include - http, ftp, telnet, mailto.  Different schemes use different object addresses.  HTTP uses an object address of the following form: //fully-qualified-domain-name/path-to-document // Computer Sciences Department

16 URLs Host name may include a port number, as in :80 (80 is the default) URLs cannot include spaces or any of a collection of other special characters (semicolons, colons,...) The doc path may be abbreviated as a partial path – The rest is furnished by the server configuration If the doc path ends with a slash, it means it is a directory Example: URL path  Computer Sciences Department

Multipurpose Internet Mail Extensions (MIME) read only 17Computer Sciences Department

18 HTTP request and respond phase  The client will initiate the communication by: -sending a request (HTTP Request) and -the HTTP Server (or Web Server) will respond back by sending a response (HTTP Response).  Every time a client needs to send the request, it first establishes a TCP reliable connection with the Web Server and then transfer the request via this connection.  The same happens in case a Web Server needs to send back an HTTP Response to a client.  Any of the two parties - the client or the server can prematurely stop the transfer by terminating the TCP connection. Client Server - Cookies are key/value pairs used by websites to store state information on the browser - client-side cookies are often used to remember data that is not relevant to the server - UI stuff; which check boxes have been checked; past login info; etc.

The Hypertext Transfer Protocol  The protocol used by ALL Web communications  Request Phase  Form: HTTP method domain part of URL HTTP ver. Header fields blank line Message body  An example of the first line of a request: GET /degrees.html HTTP/1.1 19Computer Sciences Department

The Hypertext Transfer Protocol: Methods  GET - Fetch a document  HEAD - Fetch just the header of the document  POST - Execute the document, using the data in body  PUT - Store a new document on the server  DELETE - Remove a document from the server 20Computer Sciences Department

HTTP Request Methods 21Computer Sciences Department

HTTP Headers 22Computer Sciences Department HTTP header fields are components of the header section of request and response messages in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction “both sender and recipient refer to either the client or the server, depending on who sends and who receives the entity” The Accept request-header field can be used to specify certain media types which are acceptable for the response Accept: text/plain Accept: text/* If no Accept header field is present, then it is assumed that the client accepts all media types

 The asterisk "*" character is used to group media types into ranges, with "*/*" indicating all media types and "type/*" indicating all subtypes of that type. Computer Sciences Department23 Media types

24Computer Sciences Department HTTP Response is in the form of- status line:

25Computer Sciences Department

26

Web Security 27Computer Sciences Department

XHTML  To describe the general form and layout of documents  An XHTML document is a mix of content and controls  Controls are tags and their attributes  Tags often delimit content and specify something about how the content should be arranged in the document  Attributes provide additional information about the content of a tag 28Computer Sciences Department

Creating XHTML documents  XHTML editors - make document creation easier  Shortcuts to typing tag names, spell-checker,  WYSIWYG XHTML editors  What you see is what you get (MS FrontPage) 29Computer Sciences Department

Plug-ins and Filters  Plug-ins  Integrated into tools like word processors, effectively converting them to WYSIWYG XHTML editors.  Filters  Convert documents from X formats to XHTML 30Computer Sciences Department

 To control the style and layout of multiple Web pages all at once. Computer Sciences Department31 CSS

Plug-ins and Filters: Advantages and Disadvantages  Advantages of both filters and plug-ins:  Existing documents produced with other tools can be converted to XHTML documents.  Use a tool you already know to produce XHTML  Disadvantages of both filters and plug-ins:  XHTML output of both is not perfect - must be fine tuned  XHTML may be non-standard  You have two versions of the document, which are difficult to synchronize 32Computer Sciences Department

JavaScript  A client-side HTML-embedded scripting language  Only related to Java through syntax  Dynamically typed and not object-oriented  Provides a way to access elements of HTML documents and dynamically change them 33Computer Sciences Department

XML  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. 34Computer Sciences Department

PHP  A server-side scripting language  An alternative to CGI  Similar to JavaScript  Great for form processing and database access through the Web 35Computer Sciences Department

Java  General purpose object-oriented programming language  Based on C++, but simpler and safer  Focuses on applets, servlets, and JSP 36Computer Sciences Department

ASP.NET 37Computer Sciences Department

Perl, Ruby, Rails and Ajax no need 38Computer Sciences Department