Andrew Powell

Into The Mind of A Solutions Architect

Andrew Powell

Entries Tagged as Service Capture

Capturing Localhost Traffic with Charles or Service Capture

January 08, 2009 · 2 Comments

Most of us use tools like Charles or Service Capture to help debug our web applications and flex applications.  They show you the AMF data going back and forth between your browser and the server.  It's all very helpful.  However, there's a little trick if you are trying to debug traffic to a local instance of a server.  Say you're running tomcat locally and are trying to debug the calls with one of these tools.  In your browser, you would put:

http://localhost:8080/mycontextroot/myapp.html

This works to test the app, but you don't see anything in your debugger tool. If you want this traffic to show up in your debugger, you need to use the following variation on the url:

http://localhost.:8080/mycontextroot/myapp.html

This will ensure that you do not bypass the proxy settings used to route your web traffic through the debugger.  

2 CommentsTags: Java · ColdFusion · Flex · Service Capture · BlazeDS · Spry · Silverlight · Universal Mind · JSP · XML · AJAX