HyperText Transfer Protocol

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
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.
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
The Internet Useful Definitions and Concepts About the Internet.
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.
Browsing the World Wide Web. Spring 2002Computer Networks Applications Browsing Service Allows one to conveniently obtain and display information that.
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.
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.
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
A Closer Look at HTTP HyperText Transfer Protocol.
TCP/IP Protocols Dr. Sharon Hall Perkins Applications World Wide Web(HTTP) Presented by.
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.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
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.
CS 6401 The World Wide Web Outline Background Structure Protocols.
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
HTTP Protocol Amanda Burrows. HTTP Protocol The HTTP protocol is used to send HTML documents through the Internet. The HTTP protocol sends the HTML documents.
World Wide Web. The World Wide Web is a system of interlinked hypertext documents accessed via the Internet The World Wide Web is a system of interlinked.
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.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Web fundamentals: Clients, Servers, and Communication
4.01 How Web Pages Work.
Hypertext Transfer Protocol
Tiny http client and server
Block 5: An application layer protocol: HTTP
How HTTP Works Made by Manish Kushwaha.
Introduction to the WWW
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
Hypertext Transfer Protocol
Networking CS 3470, Section 1 Sarah Diesburg
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transfer Protocol
Hypertext Transport Protocol
Internet transport protocols services
CASE STUDY -HTML,URLs,HTTP
Protocols and networks in the TCP/IP model initially.
Web Caching? Web Caching:.
HTTP: the hypertext transfer protocol
Web Development & Design Chapter 1, Sections 4, 5 & 6
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
WEB API.
The Internet and HTTP and DNS Examples
Computer Communication & Networks
1 Introduction to the Internet.
Application layer Lecture 7.
ACT102 Introduction to web design
Multimedia and Networks
Web Design & Development
CS134 Web Design & Development
Networking CS 3470, Section 1 Sarah Diesburg
ACT102 Introduction to web design
Web Page Concept and Design :
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
William Stallings Data and Computer Communications
World Wide Web Uniform Resource Locator hostname [:port]/path
PART 6 Application Layer
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
HTTP Hypertext Transfer Protocol
4.01 How Web Pages Work.
Presentation transcript:

HyperText Transfer Protocol

HTTP HyperText Transfer Protocol (HTTP) is an application protocol that is used to retrieve Web pages from remote servers. It is an application-level TCP/IP based protocol with the lightness and speed necessary for hypermedia information systems (internet). HTTP is the foundation of data communication for the World Wide Web.

HTTP There can be many different application programs—that is, Web clients like Internet Explorer, Chrome, Firefox, and Safari—that provide users with a different look and feel, but all of them use the same HTTP protocol to communicate with Web servers over the internet.

Two types of protocols Two very widely-used, standardized application protocols: SMTP: Simple Mail Transfer Protocol is used to exchange electronic mail. HTTP: HyperText Transfer Protocol is used to communicate between Web browsers and Web servers.

HTTP The core idea of hypertext is that a software system that links topics on the screen to related information and graphics. The protocol (HTTP) and document language (HTML) were designed to meet that goal.

HTTP-URL Web browser has a function that allows the user to obtain an object by “opening a URL.” Uniform Resource Locator It provide information that allows objects on the Web to be located, and they look like the following: http://www.cs.princeton.edu/index.html

HTTP-URL If you opened that particular URL, your Web browser would open a TCP (Transmission Control Protocol)connection to the Web server at a machine called www.cs.princeton.edu and immediately retrieve and display the file called index.html. Most files on the Web contain images and text and many have other objects such as audio and video clips, pieces of code, etc. They also frequently include URLs that point to other files that may be located on other machines, which is the core of the “hypertext” part of HTTP and HTML.

HTTP - URL URL Uniform Resource Locator protocol (http, ftp, news) host name (name.domain name) port (usually 80 but many on 8080) directory path to the resource resource name http://xxx.myplace.com/www/index.html http://xxx.myplace.com:80/cgi-bin/t.exe

URI,URN,URL Uniform Resource Identifier Uniform Resource Name Information about a resource Uniform Resource Name The name of the resource with in a namespace. Uniform Resource Locator How to find the resource, a URI that says how to find the resource

When you ask your browser to view a page, your browser (the client) fetches the page from the server using HTTP running over TCP. Like SMTP, HTTP is a text oriented protocol. At its core, HTTP is a request/response protocol, where every message has the general form START_LINE <CRLF> MESSAGE_HEADER <CRLF> <CRLF> MESSAGE_BODY <CRLF> where as before,<CRLF>stands for carriage-return-line-feed.The first line (START LINE) indicates whether this is a request message or a response message.

HTTP Request Packets Sent from client to server Consists of HTTP header header is hidden in browser environment contains: content type content length user - browser issuing request content types user can handle and a URL

HTTP-Request message HTTP request message specifies three things: the operation to be performed, the Web page operation should be performed, and the version of HTTP being used.

HTTP-request operations

Request operation example For example: START_LINE GET http://www.cs.princeton.edu/index.html HTTP/1.1 (absolute URL client wants the server on host www.cs.princeton.edu to return page named index.html )

Response Packets Sent by server to client browser in response to a Request Packet

HTTP Response Headers Sent by server to client browser Status Header Entities Content-Encoding: Content-Length: Content-Type: Expires: Last-Modified: extension-header Body – content (usually html)

HTTP-response message Response Messages Like request messages, response messages begin with a single START LINE. In this case, the line specifies -the version of HTTP being used, -a three-digit code indicating whether or not the request was successful, and -a text string giving the reason for the response.

HTTP-response operation Five types of HTTP result codes

Response Status Codes 200 OK 201 created 202 accepted 204 no content 301movedpermanently 302movedtemporaryly 304 not modified 400 bad request 401 unauthorized 403 forbidden 404 not found 500 int. server error 501 not impl. 502 bad gateway 503 svc not avail

Response operation example For example: START_LINE HTTP/1.1 202 Accepted Indicates that the server was able to satisfy the request. HTTP/1.1 404 Not Found Indicates that it was not able to satisfy the request because the page was not found.

HTTP-VERSION1.0 The original version of HTTP (1.0) established a separate TCP connection for each data item retrieved from the server. But this was a very inefficient mechanism: connection setup and teardown messages had to be exchanged between the client and server even if all the client wanted to do was verify that it had the most recent copy of a page. Thus, retrieving a page that included some text and a dozen icons or other small graphics would result in 13 separate TCP connections being established and closed.

TCP-Connections HTTP 1.0 behavior

HTTP-VERSION1.1 To overcome this situation, HTTP version 1.1 introduced persistent connections— the client and server can exchange multiple request/response messages over the same TCP connection. Persistent connections have many advantages. It eliminates the connection setup overhead, thereby reducing the load on the server, the load on the network caused by the additional TCP packets, and the delay perceived by the user. Since , a client can send multiple request messagesdown a single TCP connection, TCP’s congestion window mechanism is able to operate more efficiently.

HTTP 1.1 behavior with persistent connections TCP-Connections HTTP 1.1 behavior with persistent connections