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.

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

HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
HyperText Transfer Protocol (HTTP) Computer Networks Computer Networks Spring 2012 Spring 2012.
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.
How the web works: HTTP and CGI explained
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Know how HTTP accesses data on the WWW Objectives.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
9/16/2003-9/18/2003 The Application Layer and Java Programming September 16-18, 2003.
Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
Web, HTTP and Web Caching
1 K. Salah Module 2.1: Application Layer Application-level protocols provide high-level services –Web and HTTP –DNS –Electronic mail –Remote login –FTP.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
EEC-484/584 Computer Networks Lecture 4 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Hypertext Transport Protocol CS Dick Steflik.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
PL-IV- Group A HTTP Request & Response Header
Lecture 4 Web browsers, servers and HTTP Boriana Koleva Room: C54
FTP (File Transfer Protocol) & Telnet
Mail (smtp), VoIP (sip, rtp)
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.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
Application Layer 2 Figures from Kurose and Ross
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
20-1 Last time □ NAT □ Application layer ♦ Intro ♦ Web / HTTP.
2: Application Layer1 Internet apps: their protocols and transport protocols Application remote terminal access Web file transfer streaming multimedia.
Week 11: Application Layer1 Web and HTTP First some jargon r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,…
2: Application Layer1 Web and HTTP First some jargon Web page consists of base HTML-file which includes several referenced objects Object can be HTML file,
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
1 HTTP EECS 325/425, Fall 2005 September Chapter 2: Application layer r 2.1 Principles of network applications m app architectures m app requirements.
HTTP1 Hypertext Transfer Protocol (HTTP) After this lecture, you should be able to:  Know how Web Browsers and Web Servers communicate via HTTP Protocol.
CIS679: Lecture 13 r Review of Last Lecture r More on HTTP.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Advance Computer Networks Lecture#05 Instructor: Engr. Muhammad Mateen Yaqoob.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Technologies Lecture 1 The Internet and HTTP.
HTTP Here, we examine the hypertext transfer protocol (http) – originally introduced around 1990 but not standardized until 1997 (version 1.0) – protocol.
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.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
EEC-484/584 Computer Networks Lecture 4 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
HyperText Transfer Protocol (HTTP) Deepti Kulkarni CISC 856: TCP/IP and Upper Layer Protocols Fall 2008 Acknowledgements Professor Amer Richi Gupta.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Week 11: Application Layer 1 Web and HTTP r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,… r Web page consists.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
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.
Lecture 5 Internet Core: Protocol layers. Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP 
2: Application Layer 1 Chapter 2 Application Layer These ppt slides are originally from the Kurose and Ross’s book. But some slides are deleted and added.
Block 5: An application layer protocol: HTTP
HTTP – An overview.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transport Protocol
Internet transport protocols services
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

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 URL World Wide Web (the Web) A collection of documents of information –distributed over the internet, and connected by links –Based on TCP/IP, using HTTP –Web server software and Web browsers –It grows to involve many existing applications, such , file transfer Tim Berners-Lee at CERN proposed the World Wide Web application HyperText Transfer Protocol (HTTP) is the core of the Web, which was defined in HTTP1.0 (RFC:1945) and currently use HTTP1.1 RFC:2616

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 2 The documents used in the Web, can contains links, called hypertext. The ideas of hypertext was also proposed and used by other researchers. HTML (Hypertext Markup Language) is a coding language create hypertext. HTTP is based on TCP/IP, and implemented in two programs: a client program (e.g., Web browser) executing on a client machine and a sever program (Web server) executing on a server machine, they talk each other by exchanging HTTP massages A Web document (or Web page) is an object such as an HTML file, a JPEG image, GIF image, Java applet, etc. A Web page is stored in a Web server machine, and has an location, and is accessible by URL

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 3 Uniform Resource Locator (URL) is the global address of documents and other resources on the World Wide Web. –The first part of the address indicates what protocol to use. –The second part specifies the IP address or the domain name of the server host. –Third part is the path of the object in the server directory. –Example: A browser is user agent for the Web, it implements client side HTTP, and displays the requested Web page and provides many navigation and configuration functions. A Web server houses Web objects, each addressable by URL, Web server implements server side HTTP.

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 4 HTTP functions like the FTP and SMTP –Like FTP, it does file transfer from server to client. But it uses only one connection, i.e., it uses the services of TCP on port 80. –Like SMTP, a client sends a request which looks like a mail. The server responds like send a mail to the client –The server is stateless, i.e., it does not keep records of previous requests. HTTP1.0 is nonpersistent, i.e., the connection is closed after a request is done HTTP/1.1 is persistent, i.e., the connection will keep alive for a short period time, another request coming within the time can use the same connection. PC running a browser TCP Open ? OK HTTP GET … Data TCP Close Server running a Server program Initiate TCP connection Request and response

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 5 A request massage –Request line: request type + URL+HTTP version Request types –HTTP/1.0 GET, POST, HEAD asks server to leave requested object out of response –HTTP/1.1 GET, POST, HEAD, PUT: uploads file in entity body to path specified in URL field DELETE: deletes file specified in the URL field URL scheme://host:port/path –scheme : http, ftp, telnet, file, mailto, news. Request line General header Request header Entity header Blank line Body

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 6 –General header cache control, connection, date, MIME- version, upgrade –Request header: accept, accept-charset, accept-encoding, accept-language, authorization, from, host, referrer, user-agent –Entity header: allow, content-encoding, content-language, content-range, content- type, expires, last-modified, location –Example GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 7 Response massage : –Status line: HTTP version+status code+status phase Status code3 100 = continues, 101=switching, 200=OK, 201=created, 202=accepted, 204=no content 301=multiple choices, 302=moved permanently 304=moved temporarily, 400=bad request, 401=unauthorized, 403=forbidden, 404=not found 405=method not allowed, 406=not acceptable 500=internal service error, 501=not implemented 503=service unavailable General header –Response header: accept-range, age, public, retry-after, server Status line General header Response header Entity header Blank line Body

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 8 –Example 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 data data data data data... Proxy server: a computer that keeps copies of responses to recent requests. In the presence of a proxy server, the HTTP client sends a request to the proxy server. The proxy server sends the Request to the corresponding server. Incoming responses are sent to the proxy server, and stored for future requests from the other clients.

CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 9 Cookies –Stateless in server site. Cookies are used on client side to store access information to a page –Four components 1. cookie header line in the HTTP response message 2. cookie header line in HTTP request message 3. cookie file kept on user’s host and managed by user’s browser