Re: Proxy authentication + Basic authentication on the Client instance

2013-12-23 Thread Arul Dhesiaseelan
Awesome, that did the trick. Thanks Oleg. On Sun, Dec 22, 2013 at 10:42 PM, Oleg Kalnichevski ol...@apache.orgwrote: On Sun, 2013-12-22 at 20:55 -1000, Arul Dhesiaseelan wrote: Hi, I am using a proxy to connect to a web service. Both proxy and web service are secured with different

Proxy authentication + Basic authentication on the Client instance

2013-12-22 Thread Arul Dhesiaseelan
Hi, I am using a proxy to connect to a web service. Both proxy and web service are secured with different set of credentials. I am trying to perform a GET request using Apache HttpClient 4.3.1. URI proxyUri = URI.create(http://localhost:9000;); URI targetUri =

Re: how to use CookieSpecs

2013-11-24 Thread Arul Dhesiaseelan
Hi Mike, This should do the trick. RequestConfig config = RequestConfig.custom().setCookieSpec(CookieSpecs.IGNORE_COOKIES).build(); HttpUriRequest request = RequestBuilder.get().setUri(url).setConfig(config).build(); - Arul On Sun, Nov 24, 2013 at 1:41 PM, Mike Wertheim

Re: CoreConnectionPNames.MIN_CHUNK_LIMIT equivalent in 4.3.1

2013-11-13 Thread Arul Dhesiaseelan
Hi Oleg, Using it to control the chunk size on the Client, which can be configurable. - Arul On Wed, Nov 13, 2013 at 5:40 AM, Oleg Kalnichevski ol...@apache.org wrote: On Tue, 2013-11-12 at 18:49 -1000, Arul Dhesiaseelan wrote: Hi, CoreConnectionPNames is deprecated. I could not find

Re: CoreConnectionPNames.MIN_CHUNK_LIMIT equivalent in 4.3.1

2013-11-13 Thread Arul Dhesiaseelan
Using chunked encoding to write the entity. So, this property is not intended to control the chunk size of the entity? - Arul On Wed, Nov 13, 2013 at 6:43 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2013-11-13 at 06:32 -1000, Arul Dhesiaseelan wrote: Hi Oleg, Using

Re: CoreConnectionPNames.MIN_CHUNK_LIMIT equivalent in 4.3.1

2013-11-13 Thread Arul Dhesiaseelan
Thanks Oleg for clearing this up. On Wed, Nov 13, 2013 at 7:06 AM, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2013-11-13 at 06:54 -1000, Arul Dhesiaseelan wrote: Using chunked encoding to write the entity. So, this property is not intended to control the chunk size of the entity

CoreConnectionPNames.MIN_CHUNK_LIMIT equivalent in 4.3.1

2013-11-12 Thread Arul Dhesiaseelan
Hi, CoreConnectionPNames is deprecated. I could not find MIN_CHUNK_LIMIT configuration in 4.3.1. The closest I can see is ConnectionConfig.bufferSize. Not sure if they are the same. Any idea? Thanks, Arul

Request Redirect in 4.3.x

2013-11-09 Thread Arul Dhesiaseelan
Hi, I have this code using 4.2.x APIs for controlling redirect at the request. request.getParams().setBooleanParameter(ClientPNames.HANDLE_REDIRECTS, false); This allows me to configure redirect per-request, instead of the global redirect client config. How do I implement this in 4.3.x as

Re: Request Redirect in 4.3.x

2013-11-09 Thread Arul Dhesiaseelan
Nevermind, I see the RequestBuilder which has an API to set the redirects on the RequestConfig. requestBuilder.setConfig(RequestConfig.custom().setRedirectsEnabled(false).build()); requestBuilder.setEntity(entity); requestBuilder.build() - Arul On Sat, Nov 9, 2013 at 4:58 PM, Arul Dhesiaseelan