HTTPCLIENT-1427: code sample fix in tutorial
Contributed by Lars Francke <lars.francke at gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1536309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2b31931ecf
commit
7d7e7b1a4a
|
@ -293,6 +293,7 @@ authCache.put(targetHost, basicAuth);
|
|||
// Add AuthCache to the execution context
|
||||
HttpClientContext context = HttpClientContext.create();
|
||||
context.setCredentialsProvider(credsProvider);
|
||||
context.setAuthCache(authCache);
|
||||
|
||||
HttpGet httpget = new HttpGet("/");
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
|
Loading…
Reference in New Issue