• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitoring the HTTP Messages between Tomcat & Browser

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The TCPMON utility has what you need and a convenient interface. TCPMON comes in the AXIS toolkit and alot of other toolkits. It records both sides of HTTP messages.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!