Skip to main content
HTTP

HAR files: the HTTP debug log you didn't know you needed

A HAR records browser network activity in one portable JSON file. Use it to reproduce headers, redirects, timing, and failed requests—after removing secrets.

Thien Nguyen
By Thien Nguyen
Updated June 20, 2026 · 1 min read

“It works on my machine” becomes actionable when the browser request is attached. A HAR file preserves the network story: requests, responses, redirects, timing, and headers.

Short answer: export a HAR from browser DevTools' Network panel when diagnosing an HTTP issue that needs reproduction. Review it before sharing: cookies, authorization headers, query tokens, and response bodies can be inside.

HAR fieldUseful for
Request headersCORS/auth differences
Redirect chainWrong URL or cache behavior
TimingsDNS, TLS, server, download delays

A HAR is often a credential bundle disguised as a debug attachment. Sanitize it and use a secure support channel.

Use it to compare the failing browser request with the successful curl command. The difference is usually visible once both are concrete.

Cover photo by Stanislav Kondratiev on Pexels.

References

Primary documentation and specifications checked when this article was last updated.

HTTPDebuggingBrowser

Related articles

All articles