hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Http_1_1 and strict-transfer-encoding using client 4.3
Date Thu, 25 Sep 2014 09:21:33 GMT
On Thu, 2014-09-25 at 13:36 +0700, Maxim Solodovnik wrote:
> Hello All,
> 
> I have couple of questions according migration to client 4.3
> 1) Is it possible to created client operating Http_1_1? It is possible to
> set protocol version for each request, but I would like to tell client to
> work over protocol version 1.1. (was previously possible)

---
HttpGet httpGet = new HttpGet("https://host/stuff");
httpGet.setProtocolVersion(HttpVersion.HTTP_1_0);
---

> 2) Is there any example of setting "strict-transfer-encoding"? The one I
> found here [1] seems to be outdated and requires too much code comparing to
> previous version
> 

A lot of marginally useful parameters got deprecated including the so
called "strict-transfer-encoding" parameter. Custom content length
strategy is the way to go.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message