HTTPS: Difference between revisions

53 bytes removed ,  14 years ago
m
→‎{{header|Java}}: We don't need all that whitespace. Let the IDE handle it.
m (→‎{{header|Java}}: We don't need all that whitespace. Let the IDE handle it.)
Line 59:
=={{header|Java}}==
Additional certificate information is available through the ''javax.net.ssl.HttpsURLConnection'' interface.
<lang Java>URL url = new URL("https://sourceforge.net");
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
Scanner scanner = new Scanner(connection.getInputStream());
 
while (scanner.hasNext()) {
<lang Java>
System.out.println(scanner.next());
URL url = new URL("https://sourceforge.net");
}</lang Java>
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
 
Scanner scanner = new Scanner(connection.getInputStream());
 
while (scanner.hasNext()) {
System.out.println(scanner.next());
}
</lang>
 
 
=={{header|PowerShell}}==
Anonymous user