Monitoring the HTTP Messages between Tomcat & Browser
Joined: Jan 28, 2004
Is there any simple way to dump the raw http messages flowing between tomcat running in localhost and IE? Currently, I am using Ethereal (a protocol analyzer) to monitor the network card for http messages. But my method requires the tomcat running in another machine so that the messages are flowing through the network card. Just want to know are there any simplier methods available. I also heard that firefox or other browsers do have options for dumping the http message, is it also available in IE?
Joined: Aug 24, 2005
Setup a proxy on another machine and configure the browser to use it. It'll force the request to be submitted across the network and back.
Find another PC on the network and use that to access Tomcat instead of the local browser.
Write a simple program to listen on a socket, accept connections and write whatever it receives to stdout. That can be done in just a few lines of Perl. It'd be pretty simple in Java too. Then point the browser to that port instead of Tomcat's port. [ September 28, 2006: Message edited by: Scott Johnson ]