Search code examples
javasocketsproxyappletfiddler

How can I force a Java applet's network traffic through Fiddler?


I'm trying to force my Java applet's HTTP network traffic through Fiddler, and I'm not having any luck. Fiddler is running on my localhost on port 8888, and so I have set these values in my applet:

System.getProperties().put("proxyHost", "localhost");
System.getProperties().put("proxyPort", "8888");

When I do this, I get the following exception in the Java Console as soon as I try to create a socket:

java.net.SocketException: Unknown proxy type : HTTP

According to Java bug 6370908, the HTTP proxy type is not supported by the socket class. So my question is, how can I drive my socket traffic through Fiddler? If it cannot be done, is there some other network monitoring tool that will allow me to see the traffic? I'm not a networking expert, so maybe I'm missing something simple here.

I should also note that running directly from Eclipse doesn't seem possible, since my applet is expecting various HTML page elements to be present.


Solution

  • I don't know if it's possible using Fiddler but you could give Wireshark a try.