chore: update ClientProxyAuthenticationExample

This commit is contained in:
Alice Li 2023-02-17 09:36:19 -05:00 committed by Oleg Kalnichevski
parent 8233c7343a
commit cda24a64ba

View File

@ -60,10 +60,10 @@ public static void main(final String[] args) throws Exception {
final HttpGet httpget = new HttpGet("/basic-auth/user/passwd");
httpget.setConfig(config);
System.out.println("Executing request " + httpget.getMethod() + " " + httpget.getUri() +
System.out.println("Executing request " + httpget.getMethod() + " " + httpget.getUri() + " to " + target +
" via " + proxy);
httpclient.execute(httpget, response -> {
httpclient.execute(target, httpget, response -> {
System.out.println("----------------------------------------");
System.out.println(httpget + "->" + new StatusLine(response));
EntityUtils.consume(response.getEntity());