You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2023/02/17 14:59:14 UTC

[httpcomponents-client] branch master updated: chore: update ClientProxyAuthenticationExample

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/master by this push:
     new 6295dbda7 chore: update ClientProxyAuthenticationExample
6295dbda7 is described below

commit 6295dbda7348a246d2f3f831d964c88addd007bc
Author: Alice Li <al...@google.com>
AuthorDate: Fri Feb 17 09:36:19 2023 -0500

    chore: update ClientProxyAuthenticationExample
---
 .../apache/hc/client5/http/examples/ClientProxyAuthentication.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java
index 108495b88..fde839c7e 100644
--- a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java
+++ b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java
@@ -60,10 +60,10 @@ public class ClientProxyAuthentication {
             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());