코딩/JAVA
Java 자바용 HTTP 헤더
타다키치
2014. 9. 13. 20:54
out.write(new String("HTTP/1.1 200 OK\r\n").getBytes());
out.write(new String("Cache-Control: private\r\n").getBytes());
out.write(new String("Content-Length: "+msg.getBytes().length+"\r\n").getBytes());
out.write(new String("Content-Type: text/html; charset=UTF-8\r\n\r\n").getBytes());