You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Filip Hanik <ma...@filip.net> on 2003/04/17 17:38:34 UTC

turn off keep alive connections?

is there a way I can turn off keep alive connections?
I want the http client to connect up with a new connection each time.
thanks
Filip

RE: turn off keep alive connections?

Posted by Filip Hanik <ma...@filip.net>.
perfect, does exactly what I want

Filip

> -----Original Message-----
> From: Oleg Kalnichevski [mailto:o.kalnichevski@dplanet.ch]
> Sent: Thursday, April 17, 2003 8:53 AM
> To: Commons HttpClient Project
> Subject: Re: turn off keep alive connections?
> 
> 
> Filip,
> 
> Use HTTP/1.0
> 
> HttpClient client = new HttpClient()
> GetMethod httpget = new GetMethod("http://whatever.com/");
> httpget.setHttp11(false);
> 
> Hipe this helps
> 
> Oleg
> 
> On Thu, 2003-04-17 at 17:38, Filip Hanik wrote:
> > is there a way I can turn off keep alive connections?
> > I want the http client to connect up with a new connection each time.
> > thanks
> > Filip
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
> 
> 

Re: turn off keep alive connections?

Posted by Oleg Kalnichevski <o....@dplanet.ch>.
Filip,

Use HTTP/1.0

HttpClient client = new HttpClient()
GetMethod httpget = new GetMethod("http://whatever.com/");
httpget.setHttp11(false);

Hipe this helps

Oleg

On Thu, 2003-04-17 at 17:38, Filip Hanik wrote:
> is there a way I can turn off keep alive connections?
> I want the http client to connect up with a new connection each time.
> thanks
> Filip
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>