--- title: Debugging Proxied Traffic description: Inspect and export the traffic recorded by the MockServer proxy — using the dashboard UI or the retrieve/download API (JSON, log entries, HAR, cURL) — to understand and debug how a system behaves. layout: page pageOrder: 5 section: 'Proxy' subsection: true sitemap: priority: 0.7 changefreq: 'monthly' lastmod: 2026-05-30T08:00:00+00:00 ---
When MockServer runs as a proxy it records every request it forwards and the response it received. That recording is the single best way to understand how a system actually behaves — which calls a client really makes, in what order, with which headers and bodies, and how the upstream responds. This page covers the two ways to inspect that traffic: interactively in the dashboard UI, or by downloading/exporting it in a range of formats.
This is complementary to Record & Replay: there you turn recorded traffic into reusable mock expectations; here you inspect it to debug and understand a system.
The MockServer dashboard (served at http://localhost:1080/mockserver/dashboard) updates in real time as traffic flows through the proxy, so you can watch a system as it runs:
The dashboard is read-only over the same port as the proxy — no extra configuration or container is required.
The same traffic can be pulled out of MockServer programmatically with the retrieve API (PUT /mockserver/retrieve), which is ideal for scripting, sharing with teammates, or feeding into other tools. Two type values cover proxied traffic — REQUESTS (the requests only) and REQUEST_RESPONSES (each request paired with its response) — and the format parameter selects the representation:
| Format | Applies to | Use it to… |
|---|---|---|
| JSON (default) | REQUESTS, REQUEST_RESPONSES | Inspect the raw recorded requests/response pairs, or process them in a script. |
| LOG_ENTRIES | REQUESTS, REQUEST_RESPONSES | Read the traffic in MockServer's human-readable log format. |
| HAR | REQUEST_RESPONSES | Open the recording in browser DevTools or any HTTP-analysis tool that reads HAR 1.2 — a great way to share a capture. |
| CURL | REQUESTS, REQUEST_RESPONSES | Get one curl command per recorded request so you can replay an individual call by hand. |
| JAVA | REQUESTS, REQUEST_RESPONSES | Render the requests as Java client code (handy for pasting into a test). |
Retrieve request/response pairs as JSON:
curl -v -X PUT "http://localhost:1080/mockserver/retrieve?type=REQUEST_RESPONSES&format=JSON"
Export a HAR file to open in DevTools or share:
curl -v -X PUT "http://localhost:1080/mockserver/retrieve?type=REQUEST_RESPONSES&format=HAR" -o recording.har
Get one curl command per recorded request to replay a call:
curl -v -X PUT "http://localhost:1080/mockserver/retrieve?type=REQUESTS&format=CURL"
Any retrieval can be narrowed to the traffic you care about by sending a request matcher in the body — for example, only the calls to a particular path or host:
curl -v -X PUT "http://localhost:1080/mockserver/retrieve?type=REQUEST_RESPONSES&format=HAR" -d '{
"path": "/api/.*"
}'
Recorded proxy traffic answers the questions that are hardest to reason about from source code alone:
For the complete list of type and format values and the full REST specification, see the configuration docs and the retrieve REST API.