File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes HTTP help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HTTP help" Watch "HTTP help" New topic

HTTP help

anis mistry
Ranch Hand

Joined: Nov 11, 2000
Posts: 52
what do you mean by HTTP is a stateless protocol
Anupama Rao

Joined: Aug 04, 2000
Posts: 13
To what I have understood, Http protocol is stateless because, once the data packets reach the destination, the connection with the server gets disconnected and only on the next request does the communication starts. To be more clear let us talk of a phone call made. Here, when there is a ring on the phone, we pick it up to talk. The person on the other end says hello. The phone line is still active when this response is caught and is sent to the receiver and continues till you credle the phone. This is a statefull session. But in case of an Http protocol, once the message is sent, it is divided into packets and the packets are sent to the detination and the connection is closed once this process is trough. It again gets activated for the next request. The basic advantage ot this is to provide a better speed of the data by letting the channel free for other requests. Hope this explains the http protocol in a lay man's language. Please let me know if I am wrong.
anis mistry
Ranch Hand

Joined: Nov 11, 2000
Posts: 52
thank you anupama i think you are right
I agree. Here's the link:
subject: HTTP help
It's not a secret anymore!