Wednesday, September 25, 2019

httpclient.4.3.x how to view http communication in client application / enable wire logs



if you are consuming any webservice for integration purpose its always useful to have ability to see http communication with server.

 it helps in finding response issue if server is not responding correctly.


if java application is using httpclient 4.3.x version to call APIs, putting following logger gives you details logs from http hand shake to actual request and response body



log4j.logger.org.apache.http.wire=TRACE,eventIntegrator