From http://stackoverflow.com/questions/9620720/fiddler-not-capturing-http-requests-from-java-application

You can simply set Fiddler as HTTP proxy for your application by setting the properties

http.proxyHost to localhost and http.proxyPort to 8888 for HTTP traffic and https.proxyHost / https.proxyPort for HTTPS traffic.

For HTTPS traffic you also have to add the Fiddler root certificate (exportable in options dialog) as trusted certificate to your application.

You can do so by adding the following lines at the beginning of your code

System.setProperty("http.proxyHost","localhost");

System.setProperty("http.proxyPort","8888");

or set them via command line when starting the Java-VM:

java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888...

相关文章:

  • 2022-12-23
  • 2021-04-23
  • 2021-08-05
  • 2022-01-14
  • 2021-09-01
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-05-01
  • 2021-06-26
  • 2021-09-14
  • 2021-11-21
  • 2021-11-08
  • 2021-05-28
相关资源
相似解决方案