Corrected ClientExecuteProxy example
This commit is contained in:
parent
7ab435c271
commit
646ff6988e
|
@ -57,7 +57,7 @@ public class ClientExecuteProxy {
|
|||
System.out.println("Executing request " + request.getMethod() + " " + request.getUri() +
|
||||
" via " + proxy);
|
||||
|
||||
httpclient.execute(request, response -> {
|
||||
httpclient.execute(target, request, response -> {
|
||||
System.out.println("----------------------------------------");
|
||||
System.out.println(request + "->" + new StatusLine(response));
|
||||
EntityUtils.consume(response.getEntity());
|
||||
|
|
Loading…
Reference in New Issue