Chapter 1 © 2003 by Addison-Wesley, Inc. 1 1.1 A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Funded by DoD - Purpose:

Slides:



Advertisements
Similar presentations
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Advertisements

Chapter 1 © 2014 by Pearson Education A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
16-Jun-15 HTTP Hypertext Transfer Protocol. 2 HTTP messages HTTP is the language that web clients and web servers use to talk to each other HTTP is largely.
Chapter 1 © 2002 by Addison Wesley Longman, Inc. 1 Chapter 1 Sebesta: Programming the World Wide Web.
HTTP Hypertext Transfer Protocol. HTTP messages HTTP is the language that web clients and web servers use to talk to each other –HTTP is largely “under.
Web architecture Dr Jim Briggs Web architecture.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
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.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
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
G51WPS Web Programming and Scripting Boriana Koleva Room: C54 Phone:
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
COMP3016 Web Technologies Introduction and Discussion What is the Web?
Introduction to Web Programming ICS213, 1 / 2011 Dr. Seung Hwan Kang.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Chapter 1: Introduction to Web
FTP (File Transfer Protocol) & Telnet
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
Chapter 1 © 2005 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
1Computer Sciences Department. Web Design 3Computer Sciences Department.
CSC 2720 Building Web Applications Getting and Setting HTTP Headers (With PHP Examples)
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.
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
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.
World Wide Web (WWW) A Distributed Document- Based System Group E Ricky Tong (D-A0-1611) Eddy Leong (D-A0-1623) Dick Lei (D-A0-1658)
1 Welcome to CSC 301 Web Programming Charles Frank.
Chapter 1 © 2003 by Addison-Wesley, Inc. 1 Chapter 1 Fundamentals.
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.
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
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.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Technologies Lecture 1 The Internet and HTTP.
Web Design A Brief Intro to the Internet Internet History Internet Protocols 2.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Fundamentals. A Brief Intro to the Internet - Origins - ARPAnet - late 1960s - Network reliability - For ARPA-funded research organizations - BITnet,
Overview of Servlets and JSP
JavaScript and Ajax (Internet Background) Week 1 Web site:
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Chapter 1 © 2009 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
 J.C.R. Licklider › envisioned "Galactic Network" concept - a globally interconnected set of computers through which everyone could quickly access data.
HTTP – An overview.
Chapter 1 Fundamentals.
1.1 A Brief Intro to the Internet
1.1 A Brief Intro to the Internet
1.1 A Brief Intro to the Internet
Presentation transcript:

Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Funded by DoD - Purpose: File sharing,communications,program sharing, remote access - Network reliability - Only for ARPA-funded research organizations - BITnet(Because it’s time Network), Csnet(Computer Science Network ) - 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 1990) - NSFnet eventually became known as the Internet - What the Internet is: - A world-wide network of computer networks - All these devices need some kind of protocol to talk to each other - At the lowest level, since 1982, all connections use TCP/IP - TCP/IP hides the differences among devices connected to the Internet

Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet (continued) - 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 - Linux - /sbin/ifconfig - Windows – ipconfig /all - Domain names - Form: host-name.domain-names - First domain is the smallest; last is the largest - Last domain specifies the type of organization - Fully qualified domain name - the host name and all of the domain names - Eg: movies.comedy.marxbros.com - movies  hostname - comedy  local domain - marxbros  second level domain - com  type of organization - 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, Usenet, mailto

Chapter 1 © 2003 by Addison-Wesley, Inc The World-Wide Web - A possible solution to the proliferation of different protocols being used on the Internet - Origins - Tim Berners-Lee at CERN proposed the Web in Purpose: to allow scientists to have access to many databases of scientific work through their own computers - Document form: hypertext  text with embedded links to text in other/same document(s) - Unit of Information  Pages? Documents? Resources? - We’ll call them documents - Hypermedia – more than just text – images, sound, etc. - Web or Internet? - The Web uses one of the protocols, http, that runs on the Internet--there are several others ( telnet, mailto, etc.)

Chapter 1 © 2003 by Addison-Wesley, Inc Web Browsers -The most common configuration used for web communication is client-server. - Browsers are clients - always initiate, servers react (although sometimes servers require responses) -Servers are slave programs listening for clients to connect to them - Mosaic - NCSA (Univ. of Illinois), in early 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 Most requests are for existing documents, using HyperText Transfer Protocol (HTTP) - But some requests are for program execution, with the output being returned as a document - dynamic content generation - cgi programs - Common Browsers  IE, Firefox, Opera etc… - Text based browser - Lynx -

Chapter 1 © 2003 by Addison-Wesley, Inc Web Servers - Provide responses to browser requests, either existing documents or dynamically built documents -Web servers monitor communication port on the host, accept HTTP commands through that port, and perform operations specified by the command. -All HTTP commands include a URL, which includes the specification of the host machine. -File Structure : Two Directories - Document root : Stores web documents - Virtual Document Tress : Secondary storage for documents - Server root : Server program and support software -Common Server Programs - Apache : httpd + added features - Maintained by Apache foundation: Free, Open Source - The most widely used web server, runs both on Windows and UNIX based machines - Configuration files : httpd.conf, srm.conf, access.conf - IIS : Windows platform only - IIS is configured using IIS snap-in -As of HTTP 1.1 browser-server connection is now maintained through more than one request-response cycle

Chapter 1 © 2003 by Addison-Wesley, Inc URLs - Uniform/Universal Resource locator ( URL) - 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 - For the file protocol, only the doc path is needed - Host name may include a port number, as in zeppo:80 ( 80 is the default, so this is silly) - URLs cannot include spaces or any of a collection of other special characters (semicolons, colons,...) - %HexCode is used for including these chars on the URL string - Eg %20 represents a space. - 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

Chapter 1 © 2003 by Addison-Wesley, Inc Multipurpose Internet Mail Extensions (MIME) - Originally developed for - 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) - Type specifications - 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 - Experimental types - Subtype begins with x- e.g., video/x-msvideo - Experimental types require the server to send a helper application or plug-in so the browser can deal with the file

Chapter 1 © 2003 by Addison-Wesley, Inc 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 /cs.uccp.edu/degrees.html HTTP/1.1 - Most commonly used methods: GET - Fetch a document POST - Execute the document, using the data in body HEAD - Fetch just the header of the document PUT - Store a new document on the server DELETE - Remove a document from the server - Difference between GET and POST -

Chapter 1 © 2003 by Addison-Wesley, Inc The HyperText Transfer Protocol (continued) - Four categories of header fields: 1. General 2. Request 3. Response 4. Entity - Common request fields: Accept: text/plain Accept: text/* If-Modified_since: date - Common response fields: Content-length: 488 Content-type: text/html

Chapter 1 © 2003 by Addison-Wesley, Inc The HyperText Transfer Protocol (continued) - Response Phase - Form: Status line Response header fields blank line Response body - Status line format: HTTP version status code explanation - Example: HTTP/ OK (Current version is 1.1) - Status code is a three-digit number; first digit specifies the general status 1 => Informational 2 => Success 3 => Redirection 4 => Client error 5 => Server error - Details about all the Status codes The header field, Content-type, is required

Chapter 1 © 2003 by Addison-Wesley, Inc The HyperText Transfer Protocol (continued) - An example of a complete response header: HTTP/ OK Date: Mon, 27 Jun :22:47 GMT Server: Apache/ (Unix) (Red-Hat/Linux) Last-modified: Wed, 26 Jun :12:29 GMT Etag: "841fb-4b-3d1a0179" Accept-ranges: bytes Content-length: 75 Connection: close Content-type: text/html -  For looking at the request and Response Another Example of Request Response URL: Request Connect to on port ok GET / HTTP/1.1[CRLF] Host: Connection: close[CRLF] Accept-Encoding: gzip[CRLF] Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*[CRLF] Accept-Language: en-us[CRLF] User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;.NET CLR ) Web-Sniffer/1.0.24[CRLF] Referer: [CRLF]

Chapter 1 © 2003 by Addison-Wesley, Inc The HyperText Transfer Protocol (continued) Response: HTTP Status Code: HTTP/ Object moved Server: Microsoft-IIS/5.0 CRLF Date: Tue, 22 Aug :46:12 GMT CRLF X-Powered-By: ASP.NET CRLF Connection: close CRLF Location: /my/ CRLF Content-Length: 125 CRLF Content-Type: text/html CRLF Set-Cookie: ASPSESSIONIDQADATBSQ=HGKONBMBOCFKFBAKHMFMIGKH; path=/ CRLF Cache-control: private Content Objectmoved ObjectMoved Thisobjectmaybefound here.

Chapter 1 © 2003 by Addison-Wesley, Inc The Web Programmer’s Toolbox - HTML - To describe the general form and layout of documents - An HTML 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 - Tools for creating HTML documents - HTML editors - make document creation easier - Shortcuts to typing tag names, spell-checker, - WYSIWYG HTML editors - Need not know HTML to create HTML documents

Chapter 1 © 2003 by Addison-Wesley, Inc The Web Programmer’s Toolbox (continued) - Plug ins - Integrated into tools like word processors, effectively converting them to WYSIWYG HTML editors - Filters - Convert documents in other formats to HTML - Advantages of both filters and plug-ins: - Existing documents produced with other tools can be converted to HTML documents - Use a tool you already know to produce HTML - Disadvantages of both filters and plug-ins: - HTML output of both is not perfect - must be fine tuned - HTML may be non-standard - You have two versions of the document, which are difficult to synchronize

Chapter 1 © 2003 by Addison-Wesley, Inc The Web Programmer’s Toolbox (continued) - 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, use style sheets for presentation - A simple and universal way of representing data of any textual kind - Semi Structured data - Most languages have XML parsers - 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

Chapter 1 © 2003 by Addison-Wesley, Inc The Web Programmer’s Toolbox (continued) - Java - General purpose object-oriented programming language - Based on C++, but simpler and safer - For web we have applets and JSP Pages - Perl - Provides server-side computation for HTML documents, through CGI - Perl is good for CGI programming because: - Direct access to operating systems functions - Powerful character string pattern-matching operations - Access to database systems - cgi.pm  CGI Library for Perl - Perl is highly platform independent, and has been ported to all common platforms - Perl is not just for CGI

Chapter 1 © 2003 by Addison-Wesley, Inc The Web Programmer’s Toolbox (continued) - PHP - A server-side scripting language - An alternative to CGI - Similar to JavaScript - Great for form processing and database access through the Web