hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1631053 - /httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java
Date Sat, 11 Oct 2014 15:06:07 GMT
Author: olegk
Date: Sat Oct 11 15:06:07 2014
New Revision: 1631053

URL: http://svn.apache.org/r1631053
Log:
HTTPCLIENT-1565: ClientExecuteSOCKS example doesn't specify the context while making the request
Contributed by Rohit Agarwal <mindprince at gmail.com>

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java?rev=1631053&r1=1631052&r2=1631053&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java
Sat Oct 11 15:06:07 2014
@@ -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());



Mime
View raw message