How to Configure the Agent
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.
Configuration Setups
We support two different setups for intercepting requests:
To Application (Recommended)
Reverse ProxyFrom Application(s)
Forward ProxyVerifying 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
Was this helpful?