private void connect() throws Exception {
//     // 创建SSLContext对象，并使用我们指定的信任管理器初始化
//        TrustManager[] tm = { new MyX509TrustManager() };
//        SSLContext sslContext = SSLContext.getInstance("SSL", "SunJSSE");
//        sslContext.init(null, tm, new java.security.SecureRandom());
//        // 从上述SSLContext对象中得到SSLSocketFactory对象
//        SSLSocketFactory ssf = sslContext.getSocketFactory();

        URL url2 = new URL("https://kyfw.12306.cn/otn/queryOrder/queryMyOrderNoComplete");
        HttpsURLConnection con2 = (HttpsURLConnection) url2.openConnection();
        con2.setSSLSocketFactory(Utils.getSsf());
        InputStream is2 = con2.getInputStream();
        BufferedReader reader = new BufferedReader(new InputStreamReader(is2, "UTF-8"));
        String line = null;
        while ((line = reader.readLine()) != null) {
            if (line.indexOf("用户未登录") != -1)
                System.out.println(line);
        }
        reader.close();
login("289048093@qq.com", "lichao258", "test");
    }