Record the Phone Traffic, Then Read It
How to see what a page inside a phone app really sent: record the traffic through a proxy into a HAR file, then read the Sec-Fetch headers, not the code names.
On a laptop, the Network panel is one click away. On a phone, inside someone else’s app, you need a recorder in the middle, and a file that you read after the tap.
The proxy’s job here
A proxy is a server that relays the phone’s traffic to the internet. In this investigation it does two things:
- It records every request and response into a HAR file.
- It can rewrite a response on its way to the phone (You Cannot Edit the Code on the Phone, So Change It on the Way).
How to set it up, how the phone trusts it for HTTPS, and why some apps refuse it are a topic for another series.
What a HAR holds
file.har
└─ log
└─ entries[] one entry per request, oldest first
├─ startedDateTime "2026-11-24T15:23:12.842Z" Z = UTC
├─ request method, url, headers, postData
├─ response status, headers, content (the body)
└─ timings dns, connect, ssl, send, wait, receive (ms)
HAR (HTTP Archive) is a JSON format for recorded HTTP traffic. Backend analogy: an access log that also keeps every header and every body. A desktop browser exports one from DevTools. For a page inside an iPhone app, Safari Web Inspector needs the app to turn on inspection. A proxy works for any app.
A HAR holds cookies, tokens, and device IDs. Remove them before you share the file.
Each sender leaves a fingerprint
| Sender in the page | Method | Sec-Fetch-Mode | Sec-Fetch-Dest |
|---|---|---|---|
link tap, window.open() |
GET | navigate |
document |
<img src> pixel |
GET | no-cors | image |
fetch() default |
any | cors | empty |
fetch(..., {mode:'no-cors'}) |
GET or POST | no-cors | empty |
navigator.sendBeacon() |
always POST | no-cors (usually) | empty |
The browser adds the Sec-Fetch-* headers, so page code cannot fake them. keepalive: true leaves no header of its own.
Trust the headers over the names
A function name can lie. For example, a helper file can be named after sendBeacon and still call fetch. Code can call its request a “ping” without using the HTML <a ping> feature. Read the HAR, not the name.
In the example, every tap on the failing ad showed one GET ads.example/click with no-cors and empty: the click ping (the background request that reports the tap). No navigate request followed. But the HAR shows only HTTP. What iOS did next is in another recorder: Where Did It Fail? The Device Log and the Network Log Each See Half.
Names are what the author meant. Headers are what the browser did.
References
- HAR 1.2 specification
- MDN: Fetch metadata request headers
- WebKit: Enabling the inspection of web content in apps
- mitmproxy: options
Related: start from the click that counted but opened nothing. Check whether a request survives the page closing. See the three ways iOS opens a link. Next, read why the device log and the HAR each see half, then patch code on the way to the phone. Back to the series overview.