I have a java application that speaks with some REST services and I want to watch HTTP traffic using Fiddler.
Fiddler acts as a proxy on localhost: 8888, so the following Java VM settings must configure java to use this proxy:
-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888
However, if I pass these parameters when starting the Java application that I want to debug, I do not see traffic in Fiddler.
I wrote a test Java application that just does an HTTP GET using HttpURLConnection.
I can view the HTTP traffic from this application in a script if I specify the above command line options when debugging from Eclipse.
What are the reasons why http.proxyHost / Port might not work for all java http operations?
source
share