/ Published in: HTML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<%@ page import="java.util.Enumeration"%> <%@ page import="java.util.Collections"%> <html> <body> <pre> <% out.println(request.getRequestURL() + "?" + request.getQueryString()); for(String h : Collections.list((Enumeration<String>)request.getHeaderNames())) { for(String v : Collections.list((Enumeration<String>)request.getHeaders(h))) { out.println(h+": "+v); } } %> </pre> </body> </html>