文件名称:Java发https请求证书问题
文件大小:4KB
文件格式:TXT
更新时间:2013-09-22 15:30:34
https请求,httpsurlconnection
URL url = new URL( "https://localhost:8443"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod( "POST"); connection.setDoOutput(true); connection.setDoInput(true); System.out.println( "1--Conected to "+ connection.toString());