Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
GimmeJob
Sign in
Testing tools: hands-on guides · Chapter 04 / 09

Testing Tools

Charles Proxy & Fiddler Everywhere

A debugging proxy sits between an app (a browser, a mobile app, a desktop client) and the server. Every HTTP(S) request passes through it, so you can watch, pause, edit, replay, redirect or slow down traffic. You don't have to change the app or the backend. Unlike DevTools, a proxy also sees traffic from mobile apps and devices, which is why mobile and integration testers rely on it. This chapter teaches Charles step by step, maps the same tasks to Fiddler Everywhere, and ends with a translation table for Proxyman and mitmproxy.

Key factCharlesFiddler Everywhere
PlatformsWindows, macOS, LinuxWindows, macOS, Linux
LicensePaid, with a free trialPaid subscription, with a trial
Default proxy port88888866 (check Settings → Connections)
HTTPSSSL Proxying + Charles Root CertificateSettings → HTTPS → Trust Fiddler CA
Editing trafficBreakpoints, Rewrite, Map Local / RemoteRules (conditions + actions), breakpoints
App / phone → (proxy settings host:port) → Charles or Fiddler → server
                       ↑ root certificate trusted on the client lets the proxy decrypt HTTPS
Inside the proxy: record → inspect → breakpoint / rewrite / map / throttle → forward

How a debugging proxy sees your traffic

  1. The proxy listens on a local port, such as 8888 for Charles.
  2. The client is told to use that proxy. The proxy can configure the OS or browser automatically (Charles: Proxy → macOS Proxy or Proxy → Windows Proxy), or you set it by hand on a phone's Wi-Fi.
  3. For plain HTTP, the proxy can read everything right away.
  4. For HTTPS, the proxy acts as a "man in the middle". It creates a certificate for each site and signs it with its own root certificate. The client accepts this only if you install and trust that root certificate.
  5. Without trust you see only CONNECT host:443 tunnels. With trust and SSL proxying enabled, you see full requests and responses.
Caveat: Apps that use certificate pinning reject the proxy's certificate even when it's trusted. Expect a connection error. Ask developers for a debug build with pinning disabled, rather than trying to bypass it. Only intercept traffic you're authorized to test, and remove the root certificate when you're done.

Charles: record traffic and enable SSL Proxying

  1. Install Charles from charlesproxy.com and start it. Allow it to change the system proxy settings when asked.
  2. Check that recording is on: the red record button in the toolbar, or Proxy → Start Recording.
  3. Browse to the site under test. Requests appear in the Structure view (grouped by host) and the Sequence view (chronological list).
  4. Install the root certificate: Help → SSL Proxying → Install Charles Root Certificate. On macOS, Keychain Access opens: double-click the Charles Proxy CA entry, expand Trust, and set When using this certificate to Always Trust. On Windows, click Install Certificate and place it in Trusted Root Certification Authorities.
  5. Enable decryption for the hosts you test: Proxy → SSL Proxying Settings… → SSL Proxying tab → tick Enable SSL Proxying → Add → Host api.example.test, Port 443. Alternatively, right-click a host in Structure → Enable SSL Proxying.
  6. Reload the app. Select a request and switch between Overview, Contents (request and response with JSON, headers and raw views) and Summary.
QA tip: Right-click the host under test → Focus. Other hosts collapse into an Other Hosts folder, which makes long sessions readable. File → Save Session keeps a .chls file you can attach to a bug.

Charles: capture an iPhone, Android device or simulator

Phone on the same Wi-Fi network

  1. In Charles, open Help → SSL Proxying → Install Charles Root Certificate on a Mobile Device or Remote Browser. The dialog shows your computer's IP address and the port (8888).
  2. On the phone, open the Wi-Fi network settings → Configure Proxy → Manual. Enter the computer's IP address as the server and 8888 as the port.
  3. Charles shows a prompt to allow the new device. Click Allow.
  4. On the phone, open a browser and go to chls.pro/ssl to download the certificate.
  5. iOS: install the downloaded profile in Settings → General → VPN & Device Management. Then turn on full trust in Settings → General → About → Certificate Trust Settings.
  6. Android: install it as a CA certificate in the security settings (the exact path differs by vendor, for example Settings → Security → Encryption & credentials → Install a certificate → CA certificate).

Android 7+ apps ignore user-installed certificates by default. A debug build of the app must opt in. Developers add a network security config like this, and reference it with android:networkSecurityConfig="@xml/network_security_config" on the <application> element:

<!-- res/xml/network_security_config.xml : trusts user CAs in debug builds only -->
<network-security-config>
  <debug-overrides>
    <trust-anchors>
      <certificates src="user" />
    </trust-anchors>
  </debug-overrides>
</network-security-config>

Simulators: quit the iOS Simulator, choose Help → SSL Proxying → Install Charles Root Certificate in iOS Simulators, then start it again. For the Android emulator, set the proxy in the emulator's Extended controls → Settings → Proxy.

Caveat: Turn the phone's proxy back off after testing. Otherwise the phone loses internet access as soon as Charles is closed.

Charles: Breakpoints to edit a live request or response

Breakpoints pause one request or response so you can change it by hand. Use them for one-off cases such as "what does the app do if price is negative?"

  1. Right-click the request in Structure or Sequence → Breakpoints. To manage the list, open Proxy → Breakpoint Settings….
  2. Trigger the request in the app. The Breakpoints tab opens with the intercepted request.
  3. Open Edit Request to change the URL, headers or body, then click Execute to send it on.
  4. When the response arrives, Charles pauses again. Open Edit Response to change the status line (for example 200 OK → 500 Internal Server Error), headers or JSON body, then click Execute.
  5. Click Abort instead to block the call: Charles sends an error to the client, which is a quick way to test error handling. Cancel discards your edits and lets the call continue unchanged.
  6. Turn breakpoints off with the hexagon button in the toolbar or Proxy → Disable Breakpoints.
QA tip: Apps have timeouts. If you take too long editing a paused request, the app may give up first. That's a useful test of its own, but don't confuse it with the bug you were investigating.

Charles: Map Local, Map Remote and Rewrite

Use these when the same change must happen every time, without manual editing.

Map Local returns a file from your computer instead of the server response:

  1. Save a real response first: select the request → Contents → Response → right-click → Save Response….
  2. Edit the saved JSON to create your scenario: an empty list, a missing field, a 10,000-character name.
  3. Right-click the request → Map Local…. The host and path are prefilled. Click Choose and select your file.
  4. Check that Tools → Map Local… → Enable Map Local is ticked, then repeat the action in the app.

Map Remote sends requests for one host or path to another server. For example, point a production mobile build's api.example.com at api-stage.example.com, or at a developer's machine. Open Tools → Map Remote…, tick Enable Map Remote, then click Add and fill in the Map From and Map To locations.

Rewrite applies find-and-replace rules on the fly:

  1. Open Tools → Rewrite… and tick Enable Rewrite.
  2. Click Add under Sets to create a set, then Add under Locations to choose the host and path it applies to.
  3. Under Rules, click Add and choose a type. Charles groups rule types into four categories: header rules (add, modify or remove a header), query parameter rules, URL rules and body rules. Each rule applies to the request, the response or both, and can use regular expressions.
  4. Use rules for things like adding X-Feature-Flag: new-checkout, removing Cache-Control, or turning every "isPremium":false into "isPremium":true.
Caveat: Forgotten mappings and rewrites cause false bugs later. Name rule sets clearly, keep only the ones you're using enabled, and export them with Tools → Import/Export Settings if the team needs to share them.

Charles: Throttling slow and lossy networks

  1. Open Proxy → Throttle Settings… and tick Enable Throttling.
  2. Pick a preset such as 3G or 56 kbps Modem, or enter your own bandwidth and latency.
  3. Optionally adjust Utilisation, Round-trip latency, Reliability and Stability to simulate unstable mobile networks.
  4. Tick Only for selected hosts and add the API host, so the rest of your system stays fast.
  5. Toggle throttling quickly with the turtle button in the toolbar.

Typical checks: spinners and skeleton screens appear, buttons can't be double-submitted, timeouts show a clear message, retries don't create duplicate orders, and large images degrade gracefully.

Fiddler Everywhere: HTTPS capture and Rules

Fiddler Everywhere is Telerik's current cross-platform proxy. It replaces the Windows-only Fiddler Classic for new work.

  1. Install and sign in, then open Settings → HTTPS and click Trust Fiddler CA. On Linux you have to export and trust the CA by hand.
  2. Tick Capture HTTPS traffic. It's off by default and needs the trusted CA.
  3. Start capturing: system capture, the independent browser capture, terminal capture, or an explicit proxy for devices.
  4. Sessions appear in the Live Traffic grid. Select one and use the Inspectors to read request and response headers, body and timing.
  5. To modify traffic, open the Rules tab and click Add Rule. The Rule Builder opens.
  6. Give the rule a name, add conditions (for example URL contains `/api/orders`), add actions (for example return a manual response, change the body or headers, or set a breakpoint), and click Save.
  7. Make sure the main Rules switch is on. New rules go to the top of the list and run first.
  8. Shortcut: right-click a captured session → Add New Rule. The Rule Builder opens prefilled with that session.
Fiddler Everywhere Rule Builder adding a new rule
Official Fiddler Everywhere documentation screenshot: adding a new rule in the Rule Builder.
Creating a rule from a captured session in Fiddler Everywhere
Official Fiddler Everywhere documentation screenshot: Add New Rule from the session context menu.
Caveat: Ignore server certificate errors in the HTTPS settings is for specific test endpoints only. Turning it on for everything hides real certificate problems and exposes you to spoofing while you browse.

Same task, different proxy: Charles, Fiddler, Proxyman, mitmproxy

TaskCharlesFiddler EverywhereProxymanmitmproxy
Decrypt HTTPSSSL Proxying Settings + root certSettings → HTTPS → Trust CACertificate menumitm.it certificate page
Pause and editBreakpointsRule action: breakpointBreakpoint toolIntercept filter (i)
Serve a local fileMap LocalRule action: manual responseMap LocalPython addon script
Redirect environmentMap RemoteRule: redirectMap Remote--map-remote option
Automatic editsRewriteRulesScriptingPython addons
Default port8888886690908080

mitmproxy is free and open source. Start mitmproxy (terminal UI) or mitmweb (browser UI), point the client at localhost:8080, and open http://mitm.it through the proxy to install its certificate. It's the best choice when you want to script changes in Python or run interception in CI.

Cheat sheet

TaskCharles
Start / stop recordingToolbar record button
Set the system proxyProxy → macOS Proxy / Windows Proxy
Trust HTTPSHelp → SSL Proxying → Install Charles Root Certificate
Decrypt a hostProxy → SSL Proxying Settings → Add host:443
Phone setupWi-Fi proxy = computer IP:8888, then chls.pro/ssl
Edit one callRight-click → Breakpoints
Fake response from a fileRight-click → Map Local
Point the app at stageTools → Map Remote
Automatic header or body editsTools → Rewrite
Slow networkProxy → Throttle Settings
Save evidenceFile → Save Session (.chls)
Hands-on lab: turn a success into a 500, a mock and a slow 3G call

Use any web or mobile app you're allowed to test, and its API host (shown here as api.example.test).

  1. Start Charles, check Proxy → macOS Proxy / Windows Proxy, and install and trust the root certificate (Help → SSL Proxying).
  2. Proxy → SSL Proxying Settings → add api.example.test:443. Reload the app and confirm that you can read the JSON in Contents.
  3. Right-click the host → Focus. Pick one API call that the screen depends on, such as GET /api/orders.
  4. Breakpoint: right-click the call → Breakpoints. Reload the screen. When the response pauses, open Edit Response, change the status line to HTTP/1.1 500 Internal Server Error and the body to {"error":"test"}, then click Execute.
  5. Record what the UI shows: an error message, a retry option, a blank screen, or an endless spinner. Remove the breakpoint.
  6. Map Local: save the real response (Save Response…), edit it to an empty list [], then right-click the call → Map Local… → choose the file. Reload the screen and check the empty state.
  7. Throttle: Proxy → Throttle Settings → Enable Throttling → preset 3G → Only for selected hosts = api.example.test. Tap a submit button twice quickly and check that only one request is sent.
  8. Save the session (File → Save Session) as evidence.
  9. Clean up: disable throttling and Map Local, turn off the phone or system proxy, and remove or distrust the root certificate if you no longer need it.

Fiddler Everywhere version of step 4: right-click the session → Add New Rule → add an action that returns a manual response with status 500 → Save → check that the Rules switch is on.

Official Charles SSL certificates · Fiddler Everywhere rules

Summary

  • A proxy sees traffic from any client, including mobile apps. HTTPS needs a trusted root certificate plus SSL proxying enabled for the host.
  • Breakpoints are for one-off manual edits. Map Local, Map Remote and Rewrite are for repeatable mocks, environment switching and automatic changes.
  • Throttling, limited to the API host, reproduces slow-network bugs such as double submits, missing spinners and timeouts.
  • Fiddler Everywhere does the same work with Rules. Proxyman and mitmproxy use different names for the same ideas. Always remove certificates, proxy settings and forgotten rules after testing.

Source registry

Verified 22 Nov 2026
Charles Proxy documentation

Charles recording, proxying and tools overview

XK72 · verified
Source ↗
Charles: SSL certificates

Installing and trusting the Charles root certificate on desktops, iOS, simulators, Android 7+ and Firefox

XK72 · verified
Source ↗
Charles: Breakpoints tool

Intercepting and editing requests and responses, and the Execute, Abort and Cancel actions

XK72 · verified
Source ↗
Charles: Bandwidth throttle

Simulating slower connections with bandwidth and latency throttling

XK72 · verified
Source ↗
Charles: Map Local tool

Serving local files or directories in place of remote responses

XK72 · verified
Source ↗
Charles: Rewrite tool

Rewrite sets, locations, rule types, match and replace with regular expressions

XK72 · verified
Source ↗
Fiddler Everywhere documentation

Capture modes, traffic inspection and supported protocols in Fiddler Everywhere

Progress Telerik · verified
Source ↗
Fiddler Everywhere: Modifying traffic with rules

Rules tab, Rule Builder, creating rules from sessions, enabling and ordering rules

Progress Telerik · verified
Source ↗
Fiddler Everywhere: HTTPS settings

Trusting the Fiddler CA, enabling HTTPS capture and ignoring certificate errors safely

Progress Telerik · verified
Source ↗
mitmproxy documentation

Open-source scripted interception, mitm.it certificate installation and proxy modes

mitmproxy · verified
Source ↗