On Wed, 2014-03-19 at 06:02 -0400, Karl Wright wrote:
> Hi Oleg,
> 
> I have 4.2 code which does this:
> 
> >>>
> params.setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE,true);
> params.setIntParameter(CoreProtocolPNames.WAIT_FOR_CONTINUE,socketTimeout);
> <<<
> 
> The 4.3 equivalent uses the request configuration object to set the first,
> but it's not clear how you set the second.  Any hints?
> 

That should do the trick

---
RequestConfig config = RequestConfig.custom()
        .setExpectContinueEnabled(true)
        .build();
CloseableHttpClient client = HttpClients.custom()
        .setDefaultRequestConfig(config)
        .setRequestExecutor(new HttpRequestExecutor(5000))
        .build();
---

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to