Servlet读取头信息
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Enumeration<String> header=request.getHeaderNames();
while(header.hasMoreElements()){
String name=header.nextElement();
String value=request.getHeader(name);
System.out.println(name+":"+value);
}
}