Total Pageviews

Friday 30 May 2014

Fiddler: Intercepting HTTP(S) traffic in Java Applications

To change the Java Virtual Machine's proxy settings, add the following lines at the beginning of your code.

System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("https.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "8888");
System.setProperty("https.proxyPort", "8888");