0

I have application where I am making http call to external api ( www.myapi.com) and this i am running on my intellij . I want to capture the traffic for my API call (www.myapi.com) in Fiddler. is there anyway in Fiddler to capture API call for site www.myapi.com?

I know in browser call we can capture traffic in Fiddlerbut not via api call in intellij.

user1591156
  • 1,787
  • 3
  • 14
  • 18
  • You can force your Java application to use Fiddler proxy to make requests. In IntelliJ IDEA add VM Options like `-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8080` to the Run configuration. Does it help? – CrazyCoder Mar 07 '22 at 17:34
  • @CrazyCoder, nope. Fiddler is showing traffic for my call.. here is how i do, i added your VM options in my tomcat configuration in intellij then hit the localhost url but fiddler not showing traffic for my localhost. – user1591156 Mar 07 '22 at 18:56
  • So the call is coming from Tomcat running your app that you start from IntelliJ IDEA? Or do you use HTTP client to call the API of the app running on Tomcat? Please clarify. – CrazyCoder Mar 07 '22 at 18:58
  • I have java app which uses the HTTPclient jar to call the external API. and my java app runs on tomcat. hope i am making sense here – user1591156 Mar 07 '22 at 19:45
  • Maybe this answer will help: https://stackoverflow.com/a/45188490/104891. – CrazyCoder Mar 07 '22 at 19:53
  • What http client do you use in your tomcat application? As it is your application you can set proxy in the Java source code. – Robert Mar 08 '22 at 08:26

0 Answers0