Category Image Monitoring HTTP Activity using 'tcpflow'


I just found this and I love it. Really easy to use development tool to monitor HTTP (or any other TCP port) activity.

Marc Lyanage has a OS X installer ready to go.

After installation, simply use a command such as:
$ sudo /usr/local/bin/tcpflow -i en1 -c -p port 80

.... to see what the activity is on Airport (en1) on port 80.

Just type ctrl-c to stop monitoring tcp activity.

To see what interfaces you have just type:
$ ifconfig -a

Use en0 for regular wired TCP port.

If you are doing WebObjects development in real-world webserver mode using the 127.0.0.1 loopback host address as I do, then you need to specify the lo0 interface like this:
$ sudo /usr/local/bin/tcpflow -i lo0 -c -p port 80

For help, type:
$ /usr/local/bin/tcpflow -help

More info can be found here:
http://inessential.com/?comments=1&postid=3043

http://www.friday.com/bbum/2005/03/16/httpflow-tcpflow-parser-to-help-debug-http/

Here is a screen shot showing command usage surrounded by red rectangle and the beginning of monitoring console output

Posted: Tuesday - July 12, 2005 at 01:36 PM        


Published by