1.怎么用java写一个;charset=UTF-8"); PrintWriter out = response.getWriter(); String title = "HTTP Header 请求实例 - 菜鸟教程实例"; String docType = " \n"; out.println(docType + "\n" + "<meta charset=\"utf-8\">" + title + "\n"+ "<body bgcolor=\"#f0f0f0\">\n" + "" + title + "\n" + "\n" + "\n" + "Header 名称Header 值\n"+ "\n"); Enumeration headerNames = request.getHeaderNames(); while(headerNames.hasMoreElements()) { String paramName = (String)headerNames.nextElement(); out.print("" + paramName + "\n"); String paramValue = http://www.xuexi88.com/zhishi/request.getHeader(paramName); out.println(" " + paramValue + "\n"); } out.println("\n