The Hypertext Transfer Protocol

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
Advertisements

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.
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.
Hypertext Transport Protocol CS Dick Steflik.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
 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.
Rensselaer Polytechnic Institute CSC-432 – Operating Systems David Goldschmidt, Ph.D.
FTP (File Transfer Protocol) & Telnet
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
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.
Maryam Elahi University of Calgary – CPSC 441.  HTTP stands for Hypertext Transfer Protocol.  Used to deliver virtually all files and other data (collectively.
HTTP Hypertext Transfer Protocol
HTTP1 Hypertext Transfer Protocol (HTTP) After this lecture, you should be able to:  Know how Web Browsers and Web Servers communicate via HTTP Protocol.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Technologies Lecture 1 The Internet and HTTP.
Overview of Servlets and JSP
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming.
What’s Really Happening
Research of Web Real-Time Communication Based on WebSocket
Building Web Apps with Servlets
Web Basics: HTML and HTTP
CS320 Web and Internet Programming Generating HTTP Responses
HTTP – An overview.
How does it work ?.
Introduction to: The Architecture of the World Wide Web
1993 version of Mosaic browser.
Computing with C# and the .NET Framework
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
HTTP Protocol Specification
Hypertext Transfer Protocol
Hypertext Transport Protocol
Debugging Your Website with Fiddler and Chrome Developer Tools
HTTP Protocol.
Application HTTP.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
Uniform Resource Locators
Introduction to: The Architecture of the World Wide Web
HTTP Hypertext Transfer Protocol
Hypertext Transfer Protocol
CS320 Web and Internet Programming Cookies and Session Tracking
Introduction to: The Architecture of the World Wide Web
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
Hypertext Transfer Protocol
Uniform Resource Locators (URLs)
CS3220 Web and Internet Programming Cookies and Session Tracking
Hypertext Transfer Protocol
CS 5565 Network Architecture and Protocols
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
William Stallings Data and Computer Communications
CS3220 Web and Internet Programming Handling HTTP Requests
Hypertext Transfer Protocol
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
The HTTP Protocol COSC 2206 Internet Tools The HTTP Protocol
Uniform Resource Locators

Web Server Design Week 5 Old Dominion University
CS3220 Web and Internet Programming Cookies and Session Tracking
Application Layer Part 1
HTTP Hypertext Transfer Protocol
Uniform Resource Locators (URLs)
Hypertext Transfer Protocol
An Introduction to the Internet and the Web
CSCI-351 Data communication and Networks
MSc Internet Computing
Presentation transcript:

The Hypertext Transfer Protocol Pat Morin COMP 2405

Outline History of HTTP The HTTP protocol HTTP Requests HTTP replies Summary

History of HTTP Initial version (not standardized) by Tim Berners- Lee (CERN) and implemented in the World's first web browser/server (Dec. 1990) HTTP 0.9 defined in 1991 HTTP 1.0 defined in 1996 as RFC 1945 HTTP 1.1 defined in 1997 as RFC 2068

HTTP Protocol Summary client server open request reply close A typical HTTP transaction: Client (browser) open connection to server Client sends request to server Server processes request Server replies to client Server closes connection Variants Connection stays open A proxy sits between client and server open request reply close

The HTTP Request Request includes a header and optional body, separated by a blank line GET /~morin/index.html HTTP/1.1 Host: localhost:3128 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive

Main HTTP Request Types GET Get (retrieve) a document HEAD Same as GET, but only retrieve header PUT Put information on the server POST Send information to the server OPTIONS get information about the server

The HTTP Response Response includes a header and optional body HTTP/1.1 200 OK Date: Wed, 03 Jan 2007 12:10:27 GMT Server: Apache/2.0.54 (Fedora) Last-Modified: Tue, 02 Jan 2007 16:01:12 GMT ETag: "548268-1b2d-d6ce0200" Accept-Ranges: bytes Content-Length: 6957 Connection: close Content-Type: text/html; charset=UTF-8 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> .... </html>

Common Response Codes 200 OK Success 404 Not Found The specified document does not exist 403 Forbidden The specified document exists, but can not be accessed 301 & 302 Document Moved The document is at the new (specified) location 4** Error Any 4** message indicates an error has occured

Summary The basic HTTP transaction is a simple request from the client followed by a reply from the server Both requests and replies have a header followed by an optional body 200 indicates a success 4xx indicates an error We will see more complicated transactions and header fields later on