This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: friends can any one tell me what is mean by Persistant Http connection