Last active
October 24, 2019 03:35
-
-
Save s9134131/752c4b8359cafd186df085ad62ca84ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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