public static void main(String[] args) throws Exception { // 소켓 및 입출력 스트림 준비 Socket socket = new Socket("www.kocw.net", 80); BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); PrintStream out = new PrintStream(socket.getOutputStream()); // 요청라인 out.println("GET / HTTP/1.1"); // 헤더정보 out.println("Host: www.kocw.net"); out.println("User-Agent: Mozilla/5.0 (Maci..