How to Intercept HTTP(S) Requests with Spring Boot and mitmproxy

Posted on Aug 16, 2022 in
Reading time: 1 minute

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/

🍿 Watch on YouTube or get the code from GitHub

The Dead Letter Queue

Love what you're seeing? By subscribing to my newsletter, not only will you be the first to know about fresh tutorials and videos, but you'll also unlock:

Subscribe now and become a part of our growing tech tribe!