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: porting to 4.3
Date Tue, 14 Jan 2014 10:51:49 GMT
On Mon, 2014-01-13 at 20:26 +0000, Boxer, Aaron wrote:
> Well, I've got everything ported over, except for one line:
> 
> 
> HttpProtocolParams.setExpectContinue(false);
> 
> How do I set this parameter in the new architecture?
> 

RequestConfig config = RequestConfig.custom()
        .setExpectContinueEnabled(true)
        .build();
HttpGet get = new HttpGet("/stuff");
get.setConfig(config);

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