Header Ads Widget

Responsive Advertisement

[java] 웹 헤더정보 조회 ( http request headers )


Enumeration<String> em = request.getHeaderNames();

while(em.hasMoreElements()){

 String name = em.nextElement() ;
 String val = request.getHeader(name) ;
 out.println(name + " : " + val) ;

}

댓글 쓰기

0 댓글