What a proxy does
Normally the app on your phone talks straight to the server. With a proxy, you tell the phone to send its traffic through a program on your computer first. The proxy sits in the middle: it records every request and response, and can pause, edit, slow down or replace them.
Phone
Wi-Fi proxy points to your computer
Proxy on your computer
Charles, Proxyman, Fiddler, mitmproxy
Server
api.shop.example
For HTTPS traffic, the phone must trust the proxy’s root certificate. The proxy decrypts the traffic, shows it to you, and encrypts it again before passing it on.
This is a man-in-the-middle setup, the same thing an attacker would try to do, except you do it on purpose, on your own test device, with your team’s permission. For HTTPSHTTPSThe secure version of HTTP; traffic between the browser or app and the server is encrypted.Open in glossary → traffic, the phone must trust the proxy’s own certificateSSL certificateThe certificate that lets a browser or app verify a server's identity and encrypt traffic (HTTPS).Open in glossary →, otherwise the encryption prevents the proxy from reading anything.
Why testers use proxies
| What you can do | Why it’s useful | Example |
|---|---|---|
| See requests and responses | Find out whether a bug is in the app or the server | The server sends the right price, the app shows the wrong one |
| Verify analytics events | Check events fire once, at the right moment, with the right data (see Testing Analytics) | purchase event sent twice, or with the wrong currency |
| Check what data is sent | Spot privacy and security problems | Password in the URL, full card number in a response, tokens over plain HTTP |
| Simulate errors | Test how the app handles a 500, 401 or 404 you can’t trigger otherwise | The app shows a blank screen on a server error |
| Breakpoints | Pause a request or response and edit it before it continues | Change a price to 0.01, a name to 300 characters, or a status to 500 |
| Map Local / Map Remote | Answer with a local file, or send the request to another server | Return an empty list; point the app at the staging server |
| Throttle | Slow down all traffic from the phone | Check loading states on 3G (see Network Conditions) |
| Repeat requests | Send the same request again, many times | Does sending “place order” twice create two orders? |
Try it: the proxy playground
Play with a proxy before setting up a real one. This grocery app is well built: it handles errors, empty lists and slow responses correctly. Use the tools and watch how it reacts.
🧪 Proxy playground
The grocery app on the phone talks to its server through the proxy. Try this: turn on Breakpoint, tap refresh in the app, change a price or the status code, then press Execute. Then try Map Local and Throttle.
- Use the app on the phone to see its traffic here.
Select a request to see its details.
FreshCart
Check this part
Which proxy feature lets you change a server response before the app receives it?
Why must the phone trust the proxy's own certificate?