Corrected the use of the wrong request object in the example

This commit is contained in:
Oleg Kalnichevski 2024-01-14 11:29:05 +01:00
parent 8d9c764d6e
commit 5f6ad302ba

View File

@ -72,7 +72,7 @@ public static void main(final String[] args) throws Exception {
.addParameter("IDToken1", "username") .addParameter("IDToken1", "username")
.addParameter("IDToken2", "password") .addParameter("IDToken2", "password")
.build(); .build();
httpclient.execute(httpget, response -> { httpclient.execute(login, response -> {
System.out.println("----------------------------------------"); System.out.println("----------------------------------------");
System.out.println("Login form get: " + response.getCode() + " " + response.getReasonPhrase()); System.out.println("Login form get: " + response.getCode() + " " + response.getReasonPhrase());
EntityUtils.consume(response.getEntity()); EntityUtils.consume(response.getEntity());