How To Intercept HTTP(S) Requests With Spring Boot And mitmproxy

Опубликовано: 30 Июль 2026
на канале: Alex Gutjahr
2,792
24

Hey there! 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-f...

🍃 Grab the code
https://axgr.dev/posts/spring-http-in...

🙌 Get in Touch
Join my newsletter and say hi at https://axgr.dev/newsletter/?utm_camp...

🍿 Subscribe if you want to see more Spring Boot + Kotlin tutorials!