HTTP


Definition:

HTTP stands for Hypertext Transfer Protocol. The language used to communicate between web browsers and servers.If you intercept the connection between your computer and server it is mainly made of GET requests. It is an application-level protocol for distributed, collaborative, hypermedia information systems.

Example:

When you open any browser any type any link to website and the server replies to the request in http format.If you want to get some information from any website. If you type GET and website name you are asking the html code for that particular page.

Uses:
  • It is used to deliver data on world wide web.
  • Provides a standardized way for computers to communicate with each other.

HTTP Protocol


Definition:

The HTTP protocol is a request/response protocol based on the client/server based architecture where web browsers, robots and search engines, etc. act like HTTP clients, and the Web server acts as a server.

Client: The HTTP client sends a request to the server in the form of a request method, URI, and protocol version, followed by a MIME-like message containing request modifiers, client information, and possible body content over a TCP/IP connection.

Server: The HTTP server responds with a status line, including the message's protocol version and a success or error code, followed by a MIME-like message containing server information, entity meta information, and possible entity-body content.

Example:

As you see the second image, the client is first requesting the server to make connection if server accepts it sends acknowledgement back to client. After that the data is send.

Uses:
  • It defines a standard way of communication between devices.
  • It helps in prioritizing the old request arrived.