HTTP Protocol.

Slides:



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

By: E. Susheel Chandar M. Guna Sekaran Intranet Mail Server.
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.
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.
 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.
COMP3016 Web Technologies Introduction and Discussion What is the Web?
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.
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
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.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Web Server Design Week 7 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/24/10.
SMTP - Simple Mail Transfer Protocol RFC 821
Overview of Servlets and JSP
Web Protocols: HTTP COMP6017 Topics on Web Services Dr Nicholas Gibbins –
Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming.
What’s Really Happening
Hypertext Transfer Protocol (HTTP) COMP6218 Web Architecture Dr Nicholas Gibbins –
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Hypertext Transfer Protocol
How HTTP Works Made by Manish Kushwaha.
Content from Python Docs.
HTTP – An overview.
Hypertext Transfer Protocol
Networking CS 3470, Section 1 Sarah Diesburg
The Hypertext Transfer Protocol
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
HTTP Protocol Specification
Hypertext Transfer Protocol
Hypertext Transport Protocol
Introduction Web Environments
Web Server Design Week 8 Old Dominion University
Web Server Design Week 7 Old Dominion University
Application HTTP.
HTTP, RESTful Web Services, HTTP and REST Tools: Postman, Fiddler
Uniform Resource Locators
WEB API.
HTTP Hypertext Transfer Protocol
Hypertext Transfer Protocol
Networking CS 3470, Section 1 Sarah Diesburg
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
Hypertext Transfer Protocol
Web Server Design Week 15 Old Dominion University
Uniform Resource Locators (URLs)
Hypertext Transfer Protocol
HyperText Transfer Protocol
Web Server Design Week 8 Old Dominion University
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
William Stallings Data and Computer Communications
Hypertext Transfer Protocol
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
The HTTP Protocol COSC 2206 Internet Tools The HTTP Protocol
The Application Layer: HTTP
Uniform Resource Locators

HTTP Hypertext Transfer Protocol
Web Server Design Week 14 Old Dominion University
Uniform Resource Locators (URLs)
Hypertext Transfer Protocol
CSCI-351 Data communication and Networks
Web Programming Week 1 Old Dominion University
Presentation transcript:

HTTP Protocol

HTTP Methods Name Description GET The GET method is used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data. HEAD Same as GET, but it transfers the status line and the header section only. POST A POST request is used to send data to the server, for example, customer information, file upload, etc. using HTML forms. PUT Replaces all the current representations of the target resource with the uploaded content. DELETE Removes all the current representations of the target resource given by URI. CONNECT Establishes a tunnel to the server identified by a given URI. OPTIONS Describe the communication options for the target resource. TRACE Performs a message loop back test along with the path to the target resource.

HTTP Status-Codes Code Description 1xx Informational It means the request was received and the process is continuing 2xx Success It means the action was successfully received, understood, and accepted 3xx Redirection It means further action must be taken in order to complete the request 4xx Client Error It means the request contains incorrect syntax or cannot be fulfilled 5xx Server Error It means the server failed to fulfill an apparently valid request

Protocol Structure in Google Chrome

HTTP Request Example (GET Method) GET http://tpu.ru/img/tom.gif HTTP/1.1 Accept: */* Referer: http://tpu.ru/ User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)‏ Host: tpu.ru Connection: close (empty line)‏ GET /img/tom.gif HTTP/1.1

HTTP Request Example (POST Method) POST /cgi-bin/process.cgi HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT) Host: aics.ru Content-Type: application/x-www-form-urlencoded Content-Length: length Accept-Language: en-us Accept-Encoding: gzip, deflate Connection: Keep-Alive licenseID=string&content=string&/paramsXML=string

HTTP Response Example HTTP/1.1 200 OK Date: Mon, 27 Jul 2009 12:28:53 GMT Server: Apache/2.2.14 (Win32) Last-Modified: Wed, 22 Jul 2009 19:15:56 GMT Content-Length: 88 Content-Type: text/html Connection: Closed <html> <body> <h1>Hello, World!</h1> </body> </html>

SMTP Simple Mail Transfer Protocol

SMTP Commands Command name Description HELO Introduce yourself MAIL FROM: Specify the sender RCPT TO: Specify the recipient DATA Specify the body of the message (To, From and Subject should be the first three lines) RSET Reset QUIT Quit the session HELP Get help command VRFY Verify an address