HTTP GET1 http post get 전송 1.Get 방식 example) { ... String result = sendData("http://xxx.xxx.xxx/xxx.asp?title=leeminjung&type=article"); ... } private static String sendData(String addr){ StringBuilder html = new StringBuilder(); try{ URL url = new URL(addr); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); if(conn != null){ conn.setConnectTimeout(10000); conn.setUseCaches(false); if(conn.getResponseCode(.. 2015. 12. 15. 이전 1 다음