Skip to content

Instantly share code, notes, and snippets.

@s9134131
Last active October 24, 2019 03:35
Show Gist options
  • Save s9134131/752c4b8359cafd186df085ad62ca84ea to your computer and use it in GitHub Desktop.
Save s9134131/752c4b8359cafd186df085ad62ca84ea to your computer and use it in GitHub Desktop.
/** print all headers */
Enumeration enumeration = request.getHeaderNames();
while (enumeration.hasMoreElements()) {
String name = (String) enumeration.nextElement();
String value = request.getHeader(name);
System.out.println(name + " -> " + value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment