Hi, wie Konfiguriere ich Apache-HttpClient-bypass proxy für lokale Adressen?
Ich bin der client so konfiguriert werden wie dies:
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpHost proxy = new HttpHost(proxyHost, proxyPort, "http");
httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
Nun, ich möchte sagen, mein client nicht auf proxy verwenden für "localhost" oder "127.0.0.1".
Dank!
Du musst angemeldet sein, um einen Kommentar abzugeben.
Mit HttpClient 4.3 APIs
systemProperties.setProperty("http.nonProxyHosts", nonProxyHosts);
aber ohne Erfolg. Danke.