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?
If you are using Logback as your logging framework, add the following configuration to your logback.xml / logback-test.xml file:
Having added this configuration, Logback's log appenders will now show useful HttpClient-related information about HTTP request and response headers, among other things.