Traffic analysis and debugging

HTTP and HTTPS traffic analysis and debugging on Mac, Windows and Linux

The debugging proxy in Microkoi Bench shows every request your app makes in full: decrypted HTTPS, WebSocket messages, honest response times, a contract for every endpoint and editing requests and responses on the fly. From your computer, phone or emulator.

The Microkoi Bench traffic screen with a list of recorded requests, an endpoint tree and the request and response panel.

Three steps to your first request

  1. 1

    Start the proxy

    The “Start” button brings the proxy up on 127.0.0.1:9090. You can change the port in settings.

  2. 2

    Route your traffic

    Set that address as the HTTP proxy in your system network settings, or only in the app you are debugging.

  3. 3

    Install the certificate

    The “Install certificate” button adds the root certificate to your system’s trust store, and HTTPS content becomes visible.

Everything that went over the wire and back

Request, response, timing and API structure — without switching windows.

  • Request and response side by side

    The exchange panel is split into two columns, so you compare the request with the response without switching tabs.

  • Endpoint tree

    Host, path segments and methods with call and error counters — an API map built from traffic.

  • Recording rules

    Only the hosts you need are decrypted. Everything else passes through an opaque tunnel and is not recorded.

  • Honest timing

    Time to first byte and total time are measured around the real call to the server.

  • Search headers and bodies

    Search by URL, headers and text bodies, and “Filters” by status class and by first-column icons: mocks, chaos, a changed model.

  • Pause the stream

    The list freezes while new exchanges wait in a buffer, with their count shown on the button.

  • Breakpoints

    Hold a request before it goes to the server and a response before it reaches your app. Edit it and let it go.

    Learn more
  • Phones and emulators

    Step-by-step device setup with a QR code for installing the certificate. Phone traffic shows up in the same list.

  • WebSocket messages

    Frames are assembled into messages: direction, time since the connection opened, size and content with JSON highlighting.

  • Large bodies in full

    Bodies up to 50 MB are stored in full as files, and old traffic is cleaned up by age and size.

  • Source app

    For requests from this computer, Bench knows which app sent them and turns the app names into a row of filter buttons.

  • Variables from traffic

    When you save a branch to a collection, Bench offers to move the server address, tokens and keys into environment variables.

How it works

HTTPS decryption with your own certificate

For secure connections Bench issues a certificate for each host on the fly and signs it with a root certificate created on your computer at first launch. The certificate is unique to your installation, and its private key is stored in a file only your user account can read.

  • One-click install: the keychain on macOS, the current user’s store on Windows, and on Linux both the system store and the browsers’ certificate database
  • On Linux the certificate counts as trusted only when it is in both stores, and the “System only” and “Browsers only” states tell you what is missing
  • For services running as another user, the app shows a ready-made command for system-wide trust and a button to check it
  • The connection to the real server is fully verified: chain, expiry and host name
  • Until the certificate is installed, secure requests are shown by host, time and size

Recording rules for every project

In the “Recording” window each workspace has its own host list: record all hosts, only the listed ones, or all except the listed ones. A host is a name or a wildcard like *.example.com — or just paste a full URL and Bench extracts the host from it.

  • A host that is not recorded passes through an opaque tunnel, without decryption
  • Messengers, mail and apps with certificate pinning keep working while you debug
  • Rules are stored in the workspace and reach your team with the repository
  • Hosts already seen in traffic are suggested with a single click

Bodies, JSON and images

A body streams to your app without delay and is stored at the same time: up to 256 KB in the workspace database, larger ones in full as a file, up to 50 MB. Only the beginning is kept in memory, so a gigabyte download through the proxy does not bloat the app’s memory. Compressed responses are decompressed only for display and storage: they go out exactly as they came in.

  • Highlighted, formatted JSON with one-click copy
  • Arrays and objects of any JSON body, response or request, collapse with the arrow left of the field into one line with the item count
  • Numbers are shown exactly as the server sent them: 1.50 stays 1.50
  • Images are shown as images, with type, size and a checkerboard for transparency
  • Headers, query parameters and form fields as key–value tables, multipart forms with files included
  • A raw tab with the whole request or response exactly as it went over the wire
  • Save a body to a file with a meaningful name built from the request path — in full, even when only the beginning is shown
  • The “cURL” button copies a recorded request as a terminal command

Breakpoints: edit requests and responses on the fly

A breakpoint holds an exchange: the request before it goes to the server, the response before it reaches your app. An editor opens over any screen: change the method, URL, headers and body of the request, or the status, headers and body of the response, and let it go. This is how you check how your app copes with a different status code, an extra field or an empty list without changing the server or the app.

  • A rule is a method, host and path with wildcards — or a single click on “Breakpoint” in the exchange panel
  • “Continue”, “Continue unchanged”, “Cancel request” — and a queue when several exchanges are paused
  • A compressed response is shown decompressed, and the body length is set automatically
  • Traffic keeps what actually went out and came back, and time spent at a breakpoint is subtracted from the duration
  • After 10 minutes without a decision, the exchange continues unchanged
How breakpoints work

Traffic from phones and emulators

The “Device” button opens step-by-step setup: allow connections from the local network, set the proxy in the phone’s Wi-Fi settings and install the certificate from a QR code. Device traffic shows up in the same list as your computer’s.

  • Network connections are enabled only by an explicit toggle, and while they are allowed, the “Device” button in the Traffic header is green
  • The certificate page with iOS and Android instructions and a fingerprint to compare opens right on the phone
  • The dialog shows connected devices and the time of their last request
  • The Android emulator reaches your computer at 10.0.2.2, and the iOS simulator uses the computer’s own settings
  • Devices on the network cannot reach your computer’s own addresses through the proxy

Selection and bookmarks

Shift-click, ⌘-click and ⌘A select several rows, and a right-click opens the selection menu: bookmark them all at once, build a request chain from the exchanges, compare two exchanges, or delete the selection. A colored bookmark marks an exchange with a stripe at the edge of the row, so you can get back to it among hundreds of others.

  • “Create request chain…” finds which values came from earlier responses and builds the user journey in Requests
  • Six bookmark colors are set from the row menu or with keys 1–6, and 0 removes the bookmark
  • A bookmarked exchange is kept when old traffic is cleaned up by age or size
  • The Bookmark group in Filters leaves only marked exchanges in the list
The Traffic screen in Microkoi Bench: eight exchanges from sign-in to order delivery are selected, the selection menu shows Bookmark, Create request chain…, Compare and Delete 8 exchanges…, and two rows have colored bookmarks.

Endpoint contract: what the backend changed in a response

Bench builds a contract for every endpoint on its own — which fields of which types the server returns — from the first three responses. When a field changes type, becomes null, disappears or appears, the row gets an icon, the method in the tree gets a change count, and the “Contract changed” bar above the list names the field, the time and the server that started answering differently.

  • The “Model” view shows the response fields, their types and whether they are required — what a client developer calls a DTO
  • In the “Format” view, the line of a field that differs from the contract is highlighted yellow in any JSON response
  • “Accept change” makes the new model the contract’s norm, and accepting can be undone
  • “Check contracts in history” checks traffic recorded earlier and finds when, and from which server, the response changed
  • “Export to HTML” saves the drift as a report for the backend, and the “Types only” option writes no values to the file at all
  • Responses from mocks, chaos and breakpoints don’t count toward the contract: the first column of the list shows who answered

Comparing two responses and two hosts

C compares the selected exchange with any other, and Shift+C with the previous response from the same endpoint. The comparison opens in place of the exchange panel with “Structure”, “Body” and “Headers” tabs, and a field that changed type is marked separately from values that changed.

  • Field order, whitespace and headers that always differ, like Date, do not count as differences
  • JSON that the server sent as a string is expanded on the “Body” tab with a “~ JSON in string” tag, and a change inside it marks the line of the field itself, such as price
  • The “Hosts respond differently” bar shows how an endpoint on the test environment answers differently than in production
  • “Compare contracts with host…” brings every shared endpoint of two environments into “Host contracts”
  • The difference copies as text for a backend ticket or saves as HTML

JSON inside a string

Some backends put a whole JSON document into a response field as a string, and escaped quotes are impossible to read by eye. A gray tilde ~ in the first column of the list, alongside the mock and chaos icons, marks such an exchange, and “Expand JSON in strings” above the body shows the string as formatted JSON.

  • In the “Model”, such a field is labeled string (JSON), and its fields appear with a ~ path: result.MENU_JSON~dishes[].price
  • A change inside the string is caught by the endpoint contract, exchange comparison and monitors
  • Paths with ~ work in monitor conditions, chain step expectations and “After response” rules
  • In the expanded body, arrays and objects collapse to a single [ … ] or { … } line, and a contract mismatch mark stays visible on the collapsed line
  • “Copy as received” copies the response exactly as the server sent it

HTTP/2 both ways and gRPC

Bench speaks HTTP/2 both to your program and to the server. Such requests are recorded like any others, with headers and bodies, and mocks, breakpoints and recording rules work for them the same way.

  • gRPC calls go through Bench: the call status the server sends after the body reaches your program and is kept in the exchange record
  • Response trailers appear as a second table under the headers on the Headers tab and after the body on the Raw tab
  • Streaming calls, bidirectional ones included, flow without delays or a time limit and appear in the list when the stream ends
  • The start line on the Raw tab shows the real protocol, for example HTTP/2.0
  • The protocol is recorded separately for each side, so you can see when the program spoke HTTP/2 and the server answered over HTTP/1.1

An API map built from recorded traffic

The flat list answers “what just happened”; the endpoint tree answers “what does this app talk to at all”. It is built from all stored traffic, not just the loaded page of the list.

  • Repeated calls collapse into a counter, and URLs with different query parameters into a single node
  • Error counters bubble up the branch and stay visible even when the tree is collapsed
  • Clicking a branch filters the list by host, path prefix or method
  • A branch can be saved as a request collection in the API client
  • Buttons on a row create a note for the host, mocks or a mock server, and selection mode with checkboxes gathers them from requests in different branches
  • The “Collapse nested” button folds away branches you no longer need open
  • In a narrow window the tree collapses on its own, opens over the list with the “Tree” button and closes once you pick a branch

WebSockets: more than the handshake

A protocol upgrade request is recorded as a regular exchange with status 101 and shows up in the list right away. WebSocket recording is on by default: Bench assembles frames into messages and shows them on the “Messages” tab of the exchange panel.

  • Every message shows its direction, time since the connection opened, size and content
  • Text is highlighted as JSON and copied with one click; service ping and pong messages are hidden behind a toggle
  • The “Search messages” field and the “All”, “Sent” and “Received” buttons keep only the messages you need, and binary ones open as a hex dump
  • The connection summary counts messages and bytes in each direction
  • While recording is on, frame compression is removed from the handshake — otherwise messages could not be read one at a time

Fast with tens of thousands of requests

The proxy must not slow down the app you are debugging. It never writes to disk itself: exchanges are collected into batches and saved in a single transaction, and the interface receives only new records.

  • The list renders only visible rows and loads more as you scroll
  • If the queue ever overflows, the app honestly shows how many exchanges were skipped
  • Traffic is stored in the workspace database and is still there after a restart
  • Old exchanges are removed automatically: by default after 14 days or above 2 GB — both limits can be changed or turned off

Questions and answers

How do I see my app’s HTTPS traffic on a Mac?

Start the proxy in Bench, set 127.0.0.1:9090 as the web proxy and secure web proxy in macOS network settings or only in the app you need, then click “Install certificate” and confirm with your password. The contents of HTTPS requests will appear in the list.

Why do some apps stop working through the proxy?

Apps with certificate pinning do not trust any outside certificate. Exclude their hosts in the “Recording” window, and their traffic will pass through an opaque tunnel without decryption. Bench deliberately does not bypass this protection.

Can I see traffic from an app on my phone?

Yes. The “Device” button on the traffic screen walks you through setup: allow connections from the local network, set the proxy in the phone’s Wi-Fi settings and install the certificate from a QR code. Turn on network connections only on a trusted network and only while debugging.

How do I change a server response on the fly?

Set a breakpoint on the address you need — with the “Breakpoint” button in the exchange panel or in the “Breakpoints” list. When the response arrives, an editor opens: change the status, headers or body and click “Continue”. If you need to serve the same response every time, a mock is more convenient.

Can I see WebSocket contents?

Yes. WebSocket recording is on by default: frames are assembled into messages, and the “Messages” tab shows the direction, time, size and text of each one, while the search field and direction buttons help you find the one you need. If you turn recording off in the proxy settings, the connection simply passes through the proxy, and the list keeps the protocol upgrade request.

Does the proxy slow my app down?

Bodies are streamed without delay, and disk writes are kept off the connection path. The time in the list is the real server response time, not proxy overhead.

Try it on your own project

The beta is free and needs no sign-up. Download it, pick your project folder and start the proxy — your first requests will show up within minutes.

Version 0.9.6 · macOS, Windows and Linux · no sign-up