What is a "stateless protocol" such as HTTP?

17

Lately I've read a lot of web stuff and I always see someone mentioning that HTTP is a stateless protocol .

Here's a snippet of RFC 2616 my emphasis

  

The Hypertext Transfer Protocol (HTTP) is an application-level      protocol for distributed, collaborative, hypermedia information      systems. It is a generic, stateless, protocol which can be used for      many tasks besides its use for hypertext, such as name servers and      distributed object management systems      request methods, error codes and headers [47].

What causes HTTP to be a stateless protocol?

    
asked by anonymous 22.03.2016 / 23:51

1 answer

21

In computing, a stateless protocol is a communication protocol that considers each request as an independent transaction that is not related to any previous request, so that the communication consists of independent request and response pairs . A stateless protocol does not require the server to retain information or session state over each communication partner for the duration of multiple requests. In contrast, a protocol that requires the maintenance of internal state on the server is known as a stateful protocol.

Examples of stateless protocols include Internet Protocol (IP), which is the basis for the Internet, and Hypertext Transfer Protocol (HTTP), which is the basis of data communication for the World Wide Web.

Font

    
23.03.2016 / 00:45