[
https://issues.apache.org/jira/browse/HTTPASYNC-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPASYNC-52.
----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0-beta5
Fixed in SVN trunk. Please review / re-test.
Oleg
> CloseableHttpAsyncClient cannot accept the proxy in RequestConfig
> -----------------------------------------------------------------
>
> Key: HTTPASYNC-52
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-52
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.0-beta4
> Environment: jdk7
> Reporter: wangdiao
> Priority: Minor
> Fix For: 4.0-beta5
>
>
> final HttpGet request = new HttpGet("http://www.apache.org/");
> HttpHost proxy = new HttpHost("127.0.0.1", 8888, "http");
> RequestConfig config = RequestConfig.custom().setProxy(proxy).build();
> request.setConfig(config);
> final Future<HttpResponse> future = httpclient.execute(request, null);
> Cannot request data via proxy, I must use:
> final HttpClientContext localcontext = HttpClientContext.adapt(new
> BasicHttpContext());
> localcontext.setRequestConfig(config);
> final Future<HttpResponse> future = httpclient.execute(request, localcontext,
> null);
> I think it is needed to fix it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]