Small pin.
public static connect() { // some code ... HttpClient client = new HttpClient(); client.getHostConfiguration().setProxy( "PROXY-SERVER", proxyPort); client.getState().setProxyCredentials( AuthScope.ANY, new UsernamePasswordCredentials("USERNAME", "PASSWORD")); // some code ... }highlighted with: http://tohtml.com/
No comments:
Post a Comment