HTTPCLIENT-1565: ClientExecuteSOCKS example doesn't specify the context while making the request
Contributed by Rohit Agarwal <mindprince at gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631053 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0047490d55
commit
3d2fcba7e5
|
@ -71,7 +71,7 @@ public class ClientExecuteSOCKS {
|
|||
HttpGet request = new HttpGet("/");
|
||||
|
||||
System.out.println("Executing request " + request + " to " + target + " via SOCKS proxy " + socksaddr);
|
||||
CloseableHttpResponse response = httpclient.execute(target, request);
|
||||
CloseableHttpResponse response = httpclient.execute(target, request, context);
|
||||
try {
|
||||
System.out.println("----------------------------------------");
|
||||
System.out.println(response.getStatusLine());
|
||||
|
|
Loading…
Reference in New Issue