wood burning stoves 2.0*
The moose likes Servlets and the fly likes friends can any one tell me what is mean by Persistant Http connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "friends can any one tell me what is mean by Persistant Http connection" Watch "friends can any one tell me what is mean by Persistant Http connection" New topic
Author

friends can any one tell me what is mean by Persistant Http connection

ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
friends
can any one tell me what is mean by Persistant Http connection
is it Statefull or Stateless?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

HTTP is a stateless protocol but to make the grabbing of lots of small images in a webpage more efficient, the server may keep the connection alive for a small (sub second) amount of time. The browsers and servers discuss this process via the 'Connection' and 'Keep-Alive' headers.

Example:
Request:

Response:


As an app developer, this is not something you need to concern yourself with. Just think of HTTP as a stateless protocol.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: friends can any one tell me what is mean by Persistant Http connection