Introduction to HTTP

HTTP Overview

HTTP (HyperText Transfer Protocol) is a protocol for sending and receiving data, such as web pages, between web servers and clients (browsers) on the WWW. It basically exchanges text message resources, and it can also exchange various other resources such as .jpeg files.

  • HTTP is an application-level protocol built on TCP/IP.
  • HTTP is a stateless protocol that does not maintain state.
  • It consists of Method, Path, Version, Headers, Body, and similar parts.

The following specifications are published for each HTTP version.

HTTP Messages

There are two types of HTTP messages.

  • HTTP request message: the client requests a resource from the server.
  • HTTP response message: the server responds to the client with the result of the HTTP request.