拉风的咖菲猫
// 创建URL对象URL myURL = new URL("https://95598.gd.csg.cn/");// 创建HttpsURLConnection对象,并设置其SSLSocketFactory对象HttpsURLConnection httpsConn = (HttpsURLConnection) myURL.openConnection();// 取得该连接的输入流,以读取响应内容InputStreamReader insr = new InputStreamReader(httpsConn.getInputStream());// 读取服务器的响应内容并显示int respInt = insr.read();while (respInt != -1) {System.out.print((char) respInt);respInt = insr.read();}