True or false: HTML applications has always been a stateless applications,
What state? Is cookies, session? What I don't know the cookies, session, http://blog.csdn.net/sun_dragon/article/details/8715747 this mentioned above them,
TCP is a stateful, UDP is a stateless? What state? How TCP have, how UDP didn't?
State whether you understand this concept in my mind is what? A blank! And I want to do? I don't want to have such a blank! Do you understand my feeling? I am very pain!
CodePudding user response:
TCP is a connection-oriented protocol, udp is a connectionless oriented protocol, the main difference is that TCP three-way handshake and udp send only regardless of the other party have to distinguish between,HTTP is the Hyper Text Transfer Protocol, since the purpose of the HTTP Protocol is support hypertext Transfer, some is more generalized support resources transmission, and so on the client browser sends a request to the HTTP server and HTTP server to send back the corresponding resources to the client in such a process, both the client and the server, it is not necessary to record the process, because each request and response are relatively independent, this is just a stateless,
HTTP itself is a stateless connection protocol, in order to support the interaction between the client and server, we need to interact through different techniques for storing condition, and these different technologies is the Cookie and Session, static HTML is stateless, and dynamic HTML language, you need to use the above interactive technology