Skip to content

Inspect HTTP requests using ngrok and Spring Cloud Gateway

Notifications You must be signed in to change notification settings

kkocel/sniff-traffic-using-ngrok-and-spring-cloud-gateway

Repository files navigation

Sniff traffic without certificate manipulation

Let's say that you want to sniff the third-party SDK that you use. You can configure it - e.g. by setting it's base URL. This repository shows you how to achieve this goal without certificate manipulation.

  1. Start ngrok:
ngrok http 8090
  1. Copy the URL from ngrok and set it as the base URL for your SDK.
  2. Start Spring Cloud Gateway:
./gradlew :bootRun
  1. Inspect incoming requests in the ngrok dashboard - http://127.0.0.1:4040/

The route of the request from SDK to the target server: Request path

About

Inspect HTTP requests using ngrok and Spring Cloud Gateway

Topics

Resources

Stars

Watchers

Forks

Languages