Tested the following:
String url = "http://www.google.com/", proxy = "<our proxy>", port =
"8080";
URL server = new URL(url);
Properties systemProperties = System.getProperties();
systemProperties.setProperty("http.proxyHost", proxy);
systemProperties.setProperty("http.proxyPort", port);
HttpURLConnection connection = (HttpURLConnection)
server.openConnection();
connection.connect();
BufferedReader in = new BufferedReader(new
InputStreamReader(connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
And just like you said it works. Will look at the HttpURLConnection code.
Thanks
--
View this message in context:
http://old.nabble.com/HTTPClient-ntlm-smart-card-tp34070660p34073158.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]