Tracing HTTP Requests

If you ever had the need to trace HTTP requests (and if you ever did advanced web development you did!), you probably found invaluable tools like TCPTrace for Windows.

On Linux I found a good replacement:

  1. Download apache axis: axis-bin-1_4.tar.gz
  2. Install it where you prefer.
  3. Create a script to launch tcpmon
    #! /bin/sh
    export JAVA_HOME=/usr/lib/jvm/java-6-sun
    $JAVA_HOME/bin/java -cp ~/tools/axis-1_4/lib/axis.jar org.apache.axis.utils.tcpmon
    

It’s also possible to set tcpmon as proxy. Then you need to specify to your program to use a localhost as proxy.
You can do that specifying system properties (-D at java command line)

http.proxyHost
http.proxyPort
http.nonProxyHosts

See: Networking Properties on Java 6 network guide.

If you know why you need it, you know also how to use it ;)

More info on axis tcp monitor here.

Update: with axis 1.5 tcpmon tool is nomore available in the axis jar. But you can still download it from here. It looks old; but if somebody knows a newer version, please leave a comment.


2 Responses to “Tracing HTTP Requests”  

  1. 1 Thomas Bayer

    An alternative to TCPMON is Membrane Monitor. Contrary to TCPMON it knows something about HTTP, supports HTTP Keep Alive and chunking.

  1. 1 More on tracing network connections. - NewInstance


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Calendar

June 2008
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening