Hello Team, I want to use wiremock to intercept a...
# help
a
Hello Team, 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
--proxy-all
but no luck
t
Hi @Abhishek Bedi can you share exactly what you tried, including how you were making requests to/through WireMock?
a
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