hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: Http_1_1 and strict-transfer-encoding using client 4.3
Date Tue, 10 Mar 2015 15:28:58 GMT
Hello,

Thanks for the 4.4 release

Am I right thinking this:
method = new HttpGet(...);
method.getParams().setParameter("http.protocol.strict-transfer-encoding",
Boolean.TRUE);
is the default behavior in 4.4?


On Thu, Sep 25, 2014 at 7:50 PM, Maxim Solodovnik <solomax666@gmail.com>
wrote:

> Thanks, will wait for 4.4
>
> On 25 September 2014 19:46, Oleg Kalnichevski <olegk@apache.org> wrote:
>
>> On Thu, 2014-09-25 at 19:31 +0700, Maxim Solodovnik wrote:
>> > Thanks for the clarification
>> >
>> > Could you please provide example or maybe a hint of how to use "Custom
>> > content length strategy"?
>> > I have tried this one [1] and found it not compilable
>> > Another example (I'm unable to find right now) was too complicated:
>> lots of
>> > code was written (creating and using DefaultBHttpClientConnection). I
>> > wonder if there any simplier way to achieve this?
>> >
>>
>> It turned out I had forgotted to add an optional constructor to
>> ManagedHttpClientConnectionFactory in 4.3. Now it will have to wait
>> until 4.4.
>>
>>
>> https://github.com/apache/httpclient/commit/0f227fa940598c7d5c64b9b7f4dcfe70dfa3da31
>>
>> Essentially this is how it is supposed to work.
>> ---
>> ManagedHttpClientConnectionFactory connFactory = new
>> ManagedHttpClientConnectionFactory(...);
>> PoolingHttpClientConnectionManager cm = new
>> PoolingHttpClientConnectionManager(connFactory);
>> ---
>>
>> For now you will have to build a custom HttpConnectionFactory<HttpRoute,
>> ManagedHttpClientConnection> implementation.
>>
>> Oleg
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message