HTTP (hypertext transfer protocol)

HTTP is a stateless protocol that serves a classical client-server model. In short, a client has to wait for the response when they make the request, and the server does not keep the data(state ) between the requests done by the two parties. 

                  Some methods for requesting a server’s response are GET, POST, PUT, DELETE, etc. They can be used to: 

  • get responses from a specified resource
  • submit data for processing to a specified resource
  • update a specified resource with available data
  • delete the specified resource. 

            For the responses, there are status codes that inform the client about the status of the requested one. The common status codes are 200 OK( for the request being successful), 404 NOT FOUND( for the requested resource not being available), and 500 INTERNAL ERROR(an error message when the server is under an unexpected condition).     

                                  Headers are common to both HTTP requests and responses. They are included in both transactions, which detail content type, length, server information, and caching policies.