RE : RE : How to use two distinct HttpClients on the same web site

2004-08-26 Thread Fabien BALAGEAS
ients on the same web site On Thu, 2004-08-26 at 11:28, Fabien BALAGEAS wrote: > Thank you Oleg, > > I was not able to keep the "hostconfiguration" parameter to null in > > httpclient.executeMethod(null, httpget1, httpstate1); > > I had to set it to httpClie

RE : How to use two distinct HttpClients on the same web site

2004-08-26 Thread Fabien BALAGEAS
tMethod("http://www.whatever.com/app2";); try { httpclient.executeMethod(null, httpget2, httpstate2); System.out.println(httpget2.getStatusLine()); System.out.println(httpget2.getResponseBodyAsString()); httpstate2.getCookies(); } finally { httpget2.releaseConnection(); } Hop

How to use two distinct HttpClients on the same web site

2004-08-25 Thread Fabien BALAGEAS
Hi, I am using HttpClient 2.0.1. I would like to have two HttpClient connections to the same web site in my application, but from two "distinct" HttpClient (i.e. each connection should handle its self cookies). How can i realize this task ? Up to now, i only managed to have two connections