public static void main(String[] args) throws Exception {
  // TODO Auto-generated method stub
   String url = "http://www.sinbong.com";  
   String curLine = "";  
   String content = "";  
   URL server = new URL(url);  
   HttpURLConnection connection = (HttpURLConnection) server  
           .openConnection();  
   connection.connect();  
   System.out.println(connection.getResponseMessage());  
   InputStream is = connection.getInputStream();  
   BufferedReader reader = new BufferedReader(new InputStreamReader(is,  
           "utf-8"));  
   while ((curLine = reader.readLine()) != null) {  
       content += curLine;  
   }  
   System.out.println("content= " + content);  
   is.close();
 }