Re: HTTPClient 4 : Request hangs for 4-5 seconds when using IP's is used without reverse DNS only on Windows

2013-02-05 Thread Oleg Kalnichevski
On Mon, 2013-02-04 at 22:25 +0100, Philippe Mouawad wrote: > Hello, > > We had an issue reported in JMerer related to HttpClient version 4.X.X > which does not happen in version 3.1. > > Thread dump shows thread hangs within InetAddress$1.getHostByAddr: > > "Thread Group 1-1" prio=6 tid=0x038f3c

Re: HTTPClient 4 : Request hangs for 4-5 seconds when using IP's is used without reverse DNS only on Windows

2013-02-05 Thread Benjamin Janes
UNSUBSCRIBE Med vänliga hälsningar/Best regards Benjamin Janes -- Senior IT Specialist Cata Technical Lead Open Group Certified IT Specialist / Level 1 Certified IT Specialist Technical Specialist (Master Data Management) IBM Sverige AB V. Varvsgatan 19, 211

How to enable debug level logs in HttpClient

2013-02-05 Thread Deepak Mishra
Hi, We are using HttpClient 4.2.3 to communicate to a third party Internet URL. To debug any issue that comes during communication, we need to see the debug logs generated by HttpClient classes (for example HttpAuthenticator class). I see that commons-logging-1.1.1.jar is shipped with HttpClient. B

Re: Avoiding persistent connections

2013-02-05 Thread Oleg Kalnichevski
On Mon, 2013-02-04 at 16:14 -0800, vigna wrote: > I have create a non-keepalive client (no connection reuse) by > > httpClient.setReuseStrategy( new NoConnectionReuseStrategy() ); > > Nonetheless, in the logs I get > > ClientConnectionManager - Connection can be kept alive for > 9223372036854775

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oleg Kalnichevski
On Mon, 2013-02-04 at 23:43 -0800, Oliver Lorenz wrote: > Hi, > > We are using httpcore 4.0.1 and httpclient 4.0.3 in one of our products. In > a clients test environment, we experience a big delay when calling > writeTo(). > Is there a reason for using such an outdated version of HttpClient? >

Re: How to enable debug level logs in HttpClient

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 15:39 +0530, Deepak Mishra wrote: > Hi, > We are using HttpClient 4.2.3 to communicate to a third party Internet URL. > To debug any issue that comes during communication, we need to see the > debug logs generated by HttpClient classes (for example HttpAuthenticator > class).

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oliver Lorenz
Thanks for your reply Oleg. You wrote: > Is there a reason for using such an outdated version of HttpClient? We have started to use it when it came out, and did not have a direct need to upgrade. But we will plan for that. > > As far as i understood the execute(), it blocks until the whole stre

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 03:26 -0800, Oliver Lorenz wrote: > Thanks for your reply Oleg. > > You wrote: > > > Is there a reason for using such an outdated version of HttpClient? > > We have started to use it when it came out, and did not have a direct need > to upgrade. But we will plan for that. >

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oliver Lorenz
Yes, this helped. Thanks a lot! Kind regards Oliver -- View this message in context: http://httpcomponents.10934.n7.nabble.com/responseEntity-writeTo-performance-depending-on-network-tp19194p19211.html Sent from the HttpClient-User mailing list archive at Nabble.com.

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oliver Lorenz
Is there a special log category that I can use to prove that we are waiting for the network layer? -- View this message in context: http://httpcomponents.10934.n7.nabble.com/responseEntity-writeTo-performance-depending-on-network-tp19194p19212.html Sent from the HttpClient-User mailing list arc

POST redirection question

2013-02-05 Thread COURTAULT Francois
Hello everyone, At the beginning, I had something like that : HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(SOME_URL); HttpResponse postResponse = httpClient.execute(httpPost); It turns out that I got a 301 Moved permanently. So I made the following modificati

Re: responseEntity.writeTo() performance depending on network?

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 06:30 -0800, Oliver Lorenz wrote: > Is there a special log category that I can use to prove that we are waiting > for the network layer? > None I know of. Wireshark is your best friend. Oleg - To unsubsc

Re: Using HttpAsyncClient completely asynchronously, and shutdown client/request appropriately.

2013-02-05 Thread Arian
Hey all, I've gotten further along and had some followup questions ... I have a single httpclient instance now for the web application... and I am now using the PoolingClientConnectionManager so I can easily do Multiple-Threads at same time if needed, and now using the regular HttpClient (ditched

Re: POST redirection question

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 18:53 +0100, COURTAULT Francois wrote: > Hello everyone, > > At the beginning, I had something like that : > HttpClient httpClient = new DefaultHttpClient(); > HttpPost httpPost = new HttpPost(SOME_URL); > HttpResponse postResponse = httpClient.execute(httpPost); > > It turn

Re: Using HttpAsyncClient completely asynchronously, and shutdown client/request appropriately.

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 15:44 -0500, Arian wrote: > Hey all, I've gotten further along and had some followup questions ... > > I have a single httpclient instance now for the web application... > and I am now using the PoolingClientConnectionManager so I can easily do > Multiple-Threads at same time

Re: Using HttpAsyncClient completely asynchronously, and shutdown client/request appropriately.

2013-02-05 Thread Oleg Kalnichevski
On Tue, 2013-02-05 at 23:41 +0100, Oleg Kalnichevski wrote: > On Tue, 2013-02-05 at 15:44 -0500, Arian wrote: > > Hey all, I've gotten further along and had some followup questions ... > > > > I have a single httpclient instance now for the web application... > > and I am now using the PoolingClie

POST redirection question

2013-02-05 Thread COURTAULT Francois
Hello everyone, At the beginning, I had something like that : HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(SOME_URL); HttpResponse postResponse = httpClient.execute(httpPost); It turns out that I got a 301 Moved permanently. So I made the following modificati

NTLM proxy authentication is failing with McAfee web gateway proxy server

2013-02-05 Thread Deepak Mishra
Hi, We are using HttpClient 4.2.3 to communicate to an internet URL through a proxy server. Proxy server has NTLM authentication integrated with an Active Directory. We are able to do NTLM authentication with Ubuntu 12.04 Squid proxy server but not able to do NTLM authentication with McAfee webgate