Configure the Proxy

How to configure Stoobly to intercept HTTP(s) traffic

Before we can record or mock requests, they must first be intercepted by the agent. To do this, we can either setup the agent as a forward or reverse proxy.

Some applications have their own proxy configurations e.g. Docker. Please refer to the application's documentation when applicable.

Configuration Setups

We support two different setups for intercepting requests:

From Application(s)

Forward Proxy

To Application

Reverse Proxy

Verifying Setup

To verify successful setup of the agent, send a requests and check the logs to see if it was intercepted. For example, send a request with curl google.com, then in the agent logs you should see:

127.0.0.1:45546: client connect 
127.0.0.1:45546: server connect google.com:80 (142.250.72.174:80)
127.0.0.1:45546: GET http://google.com/ << 301 Moved Permanently 219b 
127.0.0.1:45546: client disconnect 127.0.0.1:45546: server disconnect google.com:80 (142.250.72.174:80)

Last updated