Karim Elhelawy
03/14/2023, 2:34 PMRob Elliot
03/15/2023, 9:30 AMjava -jar wiremock-standalone-2.35.0.jar --enable-browser-proxying
Or in docker:
docker run -it --rm \
-p 8080:8080 \
wiremock/wiremock:2.35.0 \
--enable-browser-proxying
Stubs can of course be created using the JSON API as usual, using header matching. Then it's a matter of configuring <http://localhost:8080>
as the proxy for whatever client you are using.
There are docs here on browser (or "forward") proxying:
https://wiremock.org/docs/proxying/ - search for "Running as a browser proxy".Karim Elhelawy
03/15/2023, 10:33 AMThen it’s a matter of configuringI see, and the example mentioned with Java, and if I am using any other language I need to search how to configure it to point toas the proxy for whatever client you are using.<http://localhost:8080>
<http://localhost:8080>
as a proxy, right?Rob Elliot
03/15/2023, 10:33 AMcurl -x <http://localhost:8080>
<http://www.example.com>