From 5f6ad302ba94e039bb2084ac27fbac42044ef211 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sun, 14 Jan 2024 11:29:05 +0100 Subject: [PATCH] Corrected the use of the wrong request object in the example --- .../org/apache/hc/client5/http/examples/ClientFormLogin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java index 0a580adb0..e13d01829 100644 --- a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java +++ b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java @@ -72,7 +72,7 @@ public class ClientFormLogin { .addParameter("IDToken1", "username") .addParameter("IDToken2", "password") .build(); - httpclient.execute(httpget, response -> { + httpclient.execute(login, response -> { System.out.println("----------------------------------------"); System.out.println("Login form get: " + response.getCode() + " " + response.getReasonPhrase()); EntityUtils.consume(response.getEntity());