mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 21:29:12 +00:00
chore: update ClientProxyAuthenticationExample
This commit is contained in:
parent
8233c7343a
commit
cda24a64ba
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user