Anonymous user
HTTPS: Difference between revisions
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()) {
▲ System.out.println(scanner.next());
=={{header|PowerShell}}==
|