Re: Proxy Connection fails with Apache HttpClient but succeeds with java.net.URLConnection

2018-08-03 Thread Sreyan Chakravarty
It worked. Thanks for the help. This example helped me : https://hc.apache.org/httpcomponents-client-4.5.x/httpclient-win/examples/org/apache/http/examples/client/win/ClientWinAuth.java On Wed, Jul 25, 2018 at 8:07 PM Sreyan Chakravarty wrote: > What is the difference between them? W

Re: Proxy Connection fails with Apache HttpClient but succeeds with java.net.URLConnection

2018-07-25 Thread Sreyan Chakravarty
authentication code? Could you please provide more info. On Wed, Jul 25, 2018 at 1:47 PM Oleg Kalnichevski wrote: > On Tue, 2018-07-24 at 20:50 +0530, Sreyan Chakravarty wrote: > > I am on a Windows machine at work and am using HttpClient to make a > > request > > via a web

Proxy Connection fails with Apache HttpClient but succeeds with java.net.URLConnection

2018-07-24 Thread Sreyan Chakravarty
I am on a Windows machine at work and am using HttpClient to make a request via a web proxy. But the problem is that I keep 407 Authentication required message. But if I do the same thing via the RestTemplate of Spring, which uses the vanilla java.net.URLConnection class, with supplying just the

Re: Using Connection pooling gives no performance gain

2018-06-17 Thread Sreyan Chakravarty
ent > connections <https://en.wikipedia.org/wiki/HTTP_persistent_connection>. > In order to understand what happens you can enable debug logging for > HttpClient. > > Regards, > Alex > > On Sun, Jun 17, 2018 at 12:33 AM Sreyan Chakravarty < > sreyan.mail...@gmail

Using Connection pooling gives no performance gain

2018-06-16 Thread Sreyan Chakravarty
Hi, I am using Apache HTTP Client with Springs Rest Template service to have connection pooling implemented for my REST Client. The code for connection pooling is from the documentation and is similar to this-: PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();