Tomcat – See full HTTP traffic in Tomcat logs

debugginghttploggingtomcattrace

For debugging purposes, I need a way to see all HTTP traffic between our Tomcat installation and the test clients.
How can I configure Tomcat to trace all HTTP traffic (and not just the headers)?

We tried to sniff the traffic using Wireshark, but since the server and the clients are on the same Windows machine it proved problematic, due to the traffic being in localhost.

Best Answer

For Windows you can use: http://code.google.com/p/ospy/. In Linux you have strace.

Related Topic