Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
HttpsUrlReader.java - Reading Data from HTTPS URL
How to read data from an HTTPS URL with jsse.jar? I want to see a Java program example.
✍: FYIcenter
jsse.jar, Java Secure Socket Extension, allows you to communicate
securely with an SSL-enabled web server by using the "https"
URL protocol.
Here is an example program, HttpsUrlReader.java, that can be used to read data from an HTTPS URL with jsse.jar:
// Copyright (c) FYIcenter.com
import java.net.*;
import java.io.*;
public class HttpsUrlReader {
public static void main(String[] args) throws Exception {
URL url = new URL("https://www.oracle.com/");
BufferedReader in = new BufferedReader(
new InputStreamReader(url.openStream()));
String line;
while ((line = in.readLine()) != null)
System.out.println(line);
in.close();
}
}
You can compile and run the above example in a command window:
\fyicenter>\local\jdk-1.8.0\bin\javac HttpsUrlReader.java \fyicenter>\local\jdk-1.8.0\bin\java HttpsUrlReader > oracle.html
Notes that:
⇒ -Djavax.net.debug - jsse.jar Debugging Options
⇐ Examples for jsse.jar - Java Secure Socket Extension
2018-03-24, ∼2854🔥, 0💬
Popular Posts:
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website . You can download them...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...