*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes HTTP is connection-less or connection-base? my materials tell me difference answer:( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "HTTP is connection-less or connection-base? my materials tell me difference answer:(" Watch "HTTP is connection-less or connection-base? my materials tell me difference answer:(" New topic
Author

HTTP is connection-less or connection-base? my materials tell me difference answer:(

ZhiYuan Lin
Ranch Hand

Joined: Jun 30, 2003
Posts: 44
HTTP is
AConnection Less
BConnection Base
A : Still regarded as connection-less as it�s acceptable for the client or server to drop the connection at any time (e.g. Apache uses a 15 sec timeout on keep-alive sockets), client will re-establish the connection.
B : HTTP uses TCP/IP as the underlying transport and network protocols.
but which should i choose ?
S. Ganapathy
Ranch Hand

Joined: Mar 26, 2003
Posts: 194
HTTP is stateless, but connection oriented protocol.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi ZhiYuan
HTTP is connectionless.
Each HTTP request opens a new connection for the request / response then closes the connection.
That is why JAR files (even with 0% compression) will make your downloads of applets faster - there is only one connection being opened to get the one file. Without the jar file you would be opening many connections to get the many class files.
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
ZhiYuan Lin
Ranch Hand

Joined: Jun 30, 2003
Posts: 44
thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP is connection-less or connection-base? my materials tell me difference answer:(
 
Similar Threads
Doubt in HTTP
HTTP
is HTTP "connection-less" or "connection-based" for SCEA Exam??
HTTP Protocol
Is HTTP connectionless or connection oriented