Monitoring the HTTP Messages between Tomcat & Browser
Alec Lee
Ranch Hand
Joined: Jan 28, 2004
Posts: 568
posted
0
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?
Scott Johnson
Ranch Hand
Joined: Aug 24, 2005
Posts: 518
posted
0
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 ]
Look up the LiveHTTPHeaders plugin for FireFox. One of my co-workers uses MSIE and has a simlar plugin for that. When I get to the office I'll find out what it is and post it.
I use tcpflow but I don't know if there is a windows version of it.