Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 16:44 +0200, Christine wrote: On Wed, 2008-10-15 at 00:07 +0200, Oleg Kalnichevski wrote: It is a little more complex than that. You do not, as long as that instance is used for the entire lifespan of the application. One really ought to shut down the connection

Re: Preemptive authentication throws IllegalStateException using ISA proxy server

2008-10-15 Thread Oleg Kalnichevski
On Tue, 2008-10-14 at 13:07 -0700, Henrich Kraemer wrote: Oleg, The problem also occurs with HttpClient 3.1. See below for updated log. Let me know if you would want me to gather more information. Thanks, Henrich Henrich Disable preemptive authentication. It is pointless, as you

Re: Multiple calls to HttpClient

2008-10-15 Thread Mohit Anchlia
I am trying to keep CLOSE_WAIT close to 0. I also noticed that apache libs threw error when I was using one instance of HttpClient accross threads, that's the reason I started using one Httpclient per thread and then releaseConnection, closeIdleConnection and deleteConnection after every

Re: Multiple calls to HttpClient

2008-10-15 Thread Mohit Anchlia
Just one. One can make several HttpClient instances share the same connection manager, though, (which is not recommended). Why is multiple HttpClients and one connection manager not recommended? I tried using one HttpClient in servlet accross all the threads but started getting errors. It looks

Re: Multiple calls to HttpClient

2008-10-15 Thread Christine
On Wed, 2008-10-15 at 10:40 -0700, Mohit Anchlia wrote: Just one. One can make several HttpClient instances share the same connection manager, though, (which is not recommended). Why is multiple HttpClients and one connection manager not recommended? I tried using one HttpClient in servlet

Re: How to handle two forms on one page with apache httpclient

2008-10-15 Thread sebb
On 15/10/2008, boy456 [EMAIL PROTECTED] wrote: Dear friends I would like to ask about using Apache httpclient for retrieving knowledge from some online databases through forms. My problem is that there is one webpage that contains two forms on one page and I want to send only the

Re: Multiple calls to HttpClient

2008-10-15 Thread Mohit Anchlia
thanks. But can I share same HttpClient accross threads or do I need to synchronize for each thread. I am still not sure why was I getting errors when I tries using one instance of HttpClient accross threads. Another question I have is can I use same multithreadedConnection manager for different

sever side basic auth in 4.0 core?

2008-10-15 Thread Tim Julien
There seems to be alot of support for Basic Authentication (and other schemes) in httpclient 4.0. I'm wondering if any work has been done to support server side auth processing - for use with httpcore? thx! -Tim - To

Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 10:40 -0700, Mohit Anchlia wrote: Just one. One can make several HttpClient instances share the same connection manager, though, (which is not recommended). Why is multiple HttpClients and one connection manager not recommended? I tried using one HttpClient in servlet

Re: Multiple calls to HttpClient

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 11:11 -0700, Mohit Anchlia wrote: thanks. But can I share same HttpClient accross threads or do I need to synchronize for each thread. I am still not sure why was I getting errors when I tries using one instance of HttpClient accross threads. Another question I have is

Re: sever side basic auth in 4.0 core?

2008-10-15 Thread Oleg Kalnichevski
On Wed, 2008-10-15 at 14:27 -0400, Tim Julien wrote: There seems to be alot of support for Basic Authentication (and other schemes) in httpclient 4.0. I'm wondering if any work has been done to support server side auth processing - for use with httpcore? thx! -Tim Tim, HttpCore