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:
Oleg Kalnichevski 2014-10-11 15:06:07 +00:00
parent 0047490d55
commit 3d2fcba7e5
1 changed files with 1 additions and 1 deletions

View File

@ -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());