Rewriting intercepted HTTP traffic
Once you've successfully intercepted traffic from an HTTP client, HTTP Toolkit allows you to mock & rewrite intercepted HTTP requests and responses, both manually and automatically.
To do this, you first need to configure a rule. Each rules specifies what traffic it matches, and then what happens to that traffic.
As an example, let's add a rule that matches all requests to example.com, and then pauses the request, so we can manually rewrite it before its sent.
Matching requests
We first need to make a rule that matches our requests. You do this by clicking the 'Add a new rule' button at the top of the 'Modify' page: