I want to use wiremock to intercept a production URL and do MITM and send back stubbed response without actually hitting production server. Is it possible?
Please note I have already tried using
but no luck
06/21/2023, 10:13 AM
Hi @Abhishek Bedi can you share exactly what you tried, including how you were making requests to/through WireMock?
06/22/2023, 8:48 AM
Hi Tom, I tried using wiremock with --proxy-all configuration.
All apis hit to localhost are captured by wiremock and further send to the actual host. Perfect!
What I want is just the reverse.
If my app is hitting a prod url, I should be able to intercept it and return back the response to the app ( without actually hitting the prod server).
Also I dont want to make any code change in the app.
Apps like Proxyman/Charles do this with an interface. I wanted to do it cli mode