aspose file tools
The moose likes Servlets and the fly likes Monitoring the HTTP Messages between Tomcat & Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Monitoring the HTTP Messages between Tomcat & Browser" Watch "Monitoring the HTTP Messages between Tomcat & Browser" New topic
Author

Monitoring the HTTP Messages between Tomcat & Browser

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 568
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
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12271
    
    1
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


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Monitoring the HTTP Messages between Tomcat & Browser
 
Similar Threads
Can not see Tomcat from other machine
Animation - Need way to avoid UI wipe off
Tomcat4.0.1 as WinNT Service??
How to call EJB deployed on websphere from JSP running on Tomcat?
TCPIP Monitor of Eclipse Web Standard Tool Component