How to Intercept HTTP(S) Requests with Spring Boot and mitmproxy
Intro
In this tutorial, I’ll demo how to set up a Spring Boot application that uses a proxy connection to mitmproxy. This allows intercepting and inspecting HTTP requests. The approach works with RestTemplate
and WebClient
.
Check out mitmproxy at https://mitmproxy.org/ and the Cat Facts API at https://alexwohlbruck.github.io/cat-facts/docs/