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.

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
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.
HTTP – HyperText Transfer Protocol
HTTP By: Becky Fultz, Joe Flager, Katie Huston, Tom Packard, Allison Wilsey.
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.
How the web works: HTTP and CGI explained
HTTP Presented By: Holly Mortinson Amy Drout Kyle Balmer & Matt Conklin.
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.
Hypertext Transfer Protocol Information Systems 337 Prof. Harry Plantinga.
HTTP Overview Vijayan Sugumaran School of Business Administration Oakland University.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
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.
Lecture 4 Web browsers, servers and HTTP Boriana Koleva Room: C54
Rensselaer Polytechnic Institute CSC-432 – Operating Systems David Goldschmidt, Ph.D.
Web Core Programming Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Web Development MCP LebDev Vice President © 2006 Tarek.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
HTTP Protocol Specification
FTP (File Transfer Protocol) & Telnet
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
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.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
Maryam Elahi University of Calgary – CPSC 441.  HTTP stands for Hypertext Transfer Protocol.  Used to deliver virtually all files and other data (collectively.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
Tools for Web Applications. Overview of TCP/IP Link Layer Network Layer Transport Layer Application Layer.
Web HTTP Hypertext Transfer Protocol. Web Terminology ◘Message: The basic unit of HTTP communication, consisting of structured sequence of octets matching.
HTTP Hypertext Transfer Protocol
HTTP Hypertext Transfer Protocol RFC 1945 (HTTP 1.0) RFC 2616 (HTTP 1.1)
HTTP1 Hypertext Transfer Protocol (HTTP) After this lecture, you should be able to:  Know how Web Browsers and Web Servers communicate via HTTP Protocol.
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.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
WEB SERVER Mark Kimmet Shana Blair. The Project Web Server Application  Receives request for web pages or images from a client browser via the internet.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
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)
HTTP How the Internet servers and clients communicate.
HTTP Here, we examine the hypertext transfer protocol (http) – originally introduced around 1990 but not standardized until 1997 (version 1.0) – protocol.
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.
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.
Fundamentals. A Brief Intro to the Internet - Origins - ARPAnet - late 1960s - Network reliability - For ARPA-funded research organizations - BITnet,
Overview of Servlets and JSP
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
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.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
© Janice Regan, CMPT 128, Jan 2007 CMPT 371 Data Communications and Networking HTTP 0.
What’s Really Happening
Hypertext Transfer Protocol
HTTP – An overview.
Hypertext Transfer Protocol
The Hypertext Transfer Protocol
Hypertext Transfer Protocol
WEB API.
HTTP Hypertext Transfer Protocol
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
HTTP Hypertext Transfer Protocol
Hypertext Transfer Protocol
Presentation transcript:

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 the hood,” but a basic understanding can be helpful Each message, whether a request or a response, has three parts: 1.The request or the response line 2.A header section 3.The body of the message

What the client does, part I The client sends a message to the server at a particular port (80 is the default) The first part of the message is the request line, containing: –A method (HTTP command) such as GET or POST –A document address, and –An HTTP version number Example: –GET /index.html HTTP/1.0

Other methods Other methods beside GET and POST are: –HEAD : Like GET, but ask that only a header be returned –PUT : Request to store the entity-body at the URI –DELETE : Request removal of data at the URI –LINK : Request header information be associated with a document on the server –UNLINK : Request to undo a LINK request –OPTIONS : Request information about communications options on the server –TRACE : Request that the entity-body be returned as received (used for debugging)

What the client does, part II The second part of a request is optional header information, such as: –What the client software is –What formats it can accept All information is in the form Name: Value Example: User-Agent: Mozilla/2.02Gold (WinNT; I) Accept: image/gif, image/jpeg, */* A blank line ends the header

Client request headers Accept: type/subtype, type/subtype,... –Specifies media types that the client prefers to accept Accept-Language: en, fr, de –Preferred language (For example: English, French, German) User-Agent: string –The browser or other client program sending the request From: – address of user of client program Cookie: name=value –Information about a cookie for that URL –Multiple cookies can be separated by commas

What the client does, part III The third part of a request (after the blank line) is the entity-body, which contains optional data –The entity-body part is used mostly by POST requests –The entity-body part is always empty for a GET request

What the server does, part I The server response is also in three parts The first part is the status line, which tells: –The HTTP version –A status code –A short description of what the status code means Example: HTTP/ Not Found Status codes are in groups: Informational The request was successful The request was redirected The request failed A server error occurred

Common status codes 200 OK –Everything worked, here’s the data 301 Moved Permanently –URI was moved, but here’s the new address for your records 302 Moved temporarily –URL temporarily out of service, keep the old one but use this one for now 400 Bad Request –There is a xyntax error in your request 403 Forbidden –You can’t do this, and we won’t tell you why 404 Not Found –No such document 408 Request Time-out, 504 Gateway Time-out –Request took too long to fulfill for some reason

What the server does, part II The second part of the response is header information, ended by a blank line Example: Content-Length: 2532 Connection: Close Server: GWS/2.0 Date: Sun, 01 Dec :24:50 GMT Content-Type: text/html Cache-control: private Set-Cookie: PREF=ID=05302a93093ec661:TM= :LM= :S= yNWNjraftUz299RH; expires=Sun, 17-Jan :14:07 GMT; path=/; domain=.google.com All on one line There is a nice header viewer at

Server response headers Server: NCSA/1.3 –Name and version of the server Content-Type: type/subtype –Should be of a type and subtype specified by the client’s Accept header Set-Cookie: name=value; options –Requests the client to store a cookie with the given name and value

What the server does, part III The third part of a server response is the entity body This is often an HTML page –But it can also be a jpeg, a gif, plain text, etc.--anything the browser (or other client) is prepared to accept

The tag The tag may occur in the of an HTML document http-equiv and content typically have the same kinds of values as in the HTTP header This tag asks the client to pretend that the information actually occurred in the header –The information is not really in the header –As usual, not all browsers handle this information the same way Example:

Summary HTTP is a fairly straightforward protocol with a lot of possible kinds of predefined header information –More kinds can be added, so long as client and server agree A request from the client consists of three parts: 1.A header line 2.A block of header information, ending with a blank line 3.The (optional) entity body, containing data A response from the server consists of the same three parts HTTP headers are “under the hood” information, not normally displayed to the user As with most of the things covered in CIT597, –We have covered only the fundamentals –Much more detail can be found on the Web

The End