There's also: - TCPmon <http://ws.apache.org/commons/tcpmon/>, which sits explicitly between the client and the server (so the client has to know to send the request to the intermediate host/port). (It looks similar to CharlesWebProxy.)
- Wireshark <http://www.wireshark.org/>: this one captures the actual traffic on the network interfaces. Best wishes, Bruno. On 28/05/10 23:21, Fabian Mandelbaum wrote: > One such tool, which is made in Java, and it's not so expensive (USD > 50 or so IIRC), is Charles Web Proxy. > > http://www.charlesproxy.com/ > > There's also the HTTPFox addon for Firefox, which is good enough if > your client side is a web browser (which is not your case, but > anyway...) > > I'm sure there's other web proxies too, and some even may use network > traffic sniff tools to eavesdrop on http traffic, but for 50 USD > Charles Web Proxy does an excellent job (IMVHO, of course). > > > On Fri, May 28, 2010 at 6:52 PM, HT<hideki.tih...@gmail.com> wrote: >> Hi, >> >> which tool can I use to see what the requests and responses are between a >> httpclient and the Tomcat server ? >> >> Currently I have client code like: >> >> ClientResource helloClientResource =new >> ClientResource("http://localhost:8080/..."); >> ... >> >> helloClientResource.post(xmldocument).write(System.out); >> >> >> How can I see the actual request that is sent to Tomcat ? >> >> The same for the response I get back ? >> >> Can I do this code wise or do I need a tool for this ? >> >> Anyone using such a tools ? >> >> H. >> >> ------------------------------------------------------ >> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2614572 >> > > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2615546