是不是没有消息头啊
Socket s = new Socket(InetAddress.getHostAddress,10006);
PrintWriter pw = new PrintWriter(s.getOutputstream(),true);
pw.println("GET / HTTP/1.1");
pw.println("Host: 192.168.0.101:10005");
pw.println("Accept:*/*");
pw.println("Accept-Language: zh-CN,zh;q=0.8,en;q=0.6");
pw.println(); |