Re: NHttpClient example visit https://www.verisign.com:443 error

2014-01-09 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 13:29 +0800, Li Li wrote: I am trying the async client http://hc.apache.org/httpcomponents-core-ga/httpcore-nio/examples/org/apache/http/examples/nio/NHttpClient.java but it throws Exception. I am using windows with oracle jdk 1.7 Please note that this example

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread sebb
On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However, the example I followed showed how to add interceptors on global client instance level - is there a way I can add

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 12:10 +, sebb wrote: On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However, the example I followed showed how to add interceptors on global

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread sebb
On 9 January 2014 12:22, Oleg Kalnichevski ol...@apache.org wrote: On Thu, 2014-01-09 at 12:10 +, sebb wrote: On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However,

Re: Proxy authentication Error - NTLM authentication error: Unexpected state: MSG_TYPE3_GENERATED in Http Client 4.3.1

2014-01-09 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 00:32 +, Lansing, Carina S wrote: Will do - thanks Oleg! Carina, Could you please try out this patch (attached)? If you are comfortable using GitHub you can clone the patched version from here https://github.com/ok2c/httpclient.git Oleg -Original

Re: Migrating to HttpClient 4.3.1 from 4.2.6 - Solr

2014-01-09 Thread Shawn Heisey
On 1/5/2014 9:03 AM, Oleg Kalnichevski wrote: That is intended. HttpClient instances are expected to be immutable (not their dependencies though). This helps make them thread safe without incurring an overhead of synchronization. One should customize individual requests or execution contexts

Re: Migrating to HttpClient 4.3.1 from 4.2.6 - Solr

2014-01-09 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 11:07 -0700, Shawn Heisey wrote: On 1/5/2014 9:03 AM, Oleg Kalnichevski wrote: That is intended. HttpClient instances are expected to be immutable (not their dependencies though). This helps make them thread safe without incurring an overhead of synchronization. One

Most efficient way of putting file from CD Drive

2014-01-09 Thread Boxer, Aaron
Hello! I have a CD with about 1000 files on it. I need to upload them (via WebDAV client). Currently, I go one by one through the files, and put to the server using InputStreamEntity . IS there a better way? Can I use an NIO buffer, to avoid copy into user space ? Thanks! Aaaron This

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread Gaurav Kumar
In my use case, I need to know on per request basis what was the encoding used by remote server. I was hoping there there was out of the box way to know content-encoding but I am okay with disabling decompression. Thanks for the suggestion. On Thu, Jan 9, 2014 at 1:06 AM, Oleg Kalnichevski

RE: Proxy authentication Error - NTLM authentication error: Unexpected state: MSG_TYPE3_GENERATED in Http Client 4.3.1

2014-01-09 Thread Lansing, Carina S
Hi Oleg, I incorporated your patch, and it worked for our user sitting behind the NTLM proxy. Thanks so much for responding so quickly :) Carina -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Thursday, January 09, 2014 5:04 AM To: HttpClient User