hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Young <matthew.yo...@forsakringskassan.se>
Subject Re: HTTPClient ntlm smart card
Date Tue, 26 Jun 2012 15:20:23 GMT

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: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message