public static void test3(){
        try
        {
            InputStream returnStream = null;
            HttpsURLConnection conn = null;
            int connectTimeout=15000;
            int readTimeout=30000;
            String requestMethod="GET";
            String charEncode="utf-8";
            String url="https://localhost:8443/ssl/index.jsp?username=10";
            System.setProperty("javax.net.debug","ssl");
            System.setProperty("javax.net.ssl.keyStore", "G:/temp/cert/20140727/client/client.p12");
            System.setProperty("javax.net.ssl.keyStorePassword","123456");
            System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
            System.setProperty("javax.net.ssl.trustStore", "G:/temp/cert/20140727/truststore.jks");
            System.setProperty("javax.net.ssl.trustStorePassword", "222222");
            System.setProperty("javax.net.ssl.truststoreType", "JKS");
            URL serverUrl = new URL(null, url, new sun.net.www.protocol.https.Handler());
            conn = (HttpsURLConnection) serverUrl.openConnection();
            
            if (connectTimeout != -1) {
                conn.setConnectTimeout(connectTimeout);
            }
            if (readTimeout != -1) {
                conn.setReadTimeout(readTimeout);
            }
            conn.setRequestMethod(requestMethod);   
            conn.setDoOutput(true);
            conn.connect();
            conn.getOutputStream().write("jxgacsr".getBytes(charEncode));
            if (conn.getResponseCode() != 200) {
                returnStream = conn.getErrorStream();
            } else {
                returnStream = conn.getInputStream();
            } 
            String returnString = "";
            if (returnStream != null) {
                try {
                    BufferedReader br   = new BufferedReader(new InputStreamReader(returnStream, "UTF-8"));
                    StringBuffer buffer = new StringBuffer();
                    String line         = "";
                    while((line = br.readLine()) != null) {
                        buffer.append(line);
                    }
                    
                    returnString = buffer.toString();
                    System.out.println("返回：==》"+returnString);
                } catch(IOException e) {
                    e.printStackTrace();
                }
            }
        }
        catch (UnknownHostException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }catch(Exception e){
            e.printStackTrace();
        }
        
    }