공부
How can I display all the HTTP Headers when using the DefaultHTTPClient?
승가비
2022. 2. 27. 08:04
728x90
Enumeration headerNames = request.getHeaderNames();
while(headerNames.hasMoreElements()) {
String headerName = (String)headerNames.nextElement();
out.println("" + headerName);
out.println("" + request.getHeader(headerName));
}
How can I display all the HTTP Headers when using the DefaultHTTPClient?
When using the DefaultHttpClient() from the Apache Commons HTTP Client, is it possible to show the full request in the console output for debugging purposes? I'm having issues with my application ...
stackoverflow.com
728x90