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 Thu, 25 Sep 2014 12:50:12 GMT
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

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