header의 사용
Enumeration aaa = request.getHeaderNames();
String tmp = "";
while (aaa.hasMoreElements()) {
tmp = (String)aaa.nextElement();
out.println("request.getHeader("+tmp+")=");
out.println(request.getHeader(tmp));
out.println("<br>");
}
//헤더 불러오기 결과
request.getHeader("accept")= image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */**/
request.getHeader("referer")= http://www.joshi.co.kr:8000/
request.getHeader("accept-language")= ko
request.getHeader("accept-encoding")= gzip, deflate
request.getHeader("user-agent")= Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
request.getHeader("host")= joshi.co.kr:8000
request.getHeader("connection")= Keep-Alive
request.getHeader("cookie")= JSESSIONID=7B0988DB2143B99247D21CD33C22E11F