mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-16 15:07:27 +00:00
Corrected the use of the wrong request object in the example
This commit is contained in:
parent
8d9c764d6e
commit
5f6ad302ba
@ -72,7 +72,7 @@ public static void main(final String[] args) throws Exception {
|
||||
.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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user