Hi!

I haven't tried it with URLConnection, but you should set the Header
"Connection" to "Keep-Alive". Note that JDK 1.3 will support HTTP/1.1 clients
and the whole keep-alive thing changes, as in HTTP/1.1 persistent connections
are the default behavior. See RFC 2616 for details.

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.1 servletengine
  Java Server & Servlets    The German servlet book
  The WebApp Framework        http://www.webapp.de/



Anamitra wrote:

> Hi all,
> I am trying to write a standalone HttpClient which can talk to the
> webserver/servlet. I am trying to use "keep alive" connections. For this I
> have set the keep alive connection property in the Webserver (Apache). But I
> think from the client also something has to be done to ask the server not to
> close the connection. I am using the URLConnrction class. Do I need to set
> something from the client side for that?if yes how?
> TIA
> Anamitra
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to