Table of contentsClick link to navigate to the desired location
This content has been automatically translated from Ukrainian.
HAR file (HTTP Archive) is a custom file format .har, which stores the log of the web browser's work with the network.
It is essentially a record of all HTTP (S) requests and responses that occurred during page loading. It contains:
- addresses of all resources (HTML, CSS, JS, pictures, API requests, etc.),
- the lead time of each request,
- headers,
- request and response bodies (if enabled),
- status codes (200,404,500, etc.),
- information about redirects, cookies, caching.
Used for:
- diagnosis of site problems (slow loading, API errors),
- analysis of traffic between the client and the server,
- reproduction or debugging of errors in technical support,
- security checks.
HAR file can be removed in most browsers (Chrome, Firefox, Edge) via DevTools → Network → Export HAR tab.
How to open a HAR file?
The easiest way is a text editor or code editor. But let's consider in more detail.
The simplest ways
- Any text editor (Notepad, VS Code, Sublime Text) - to see "raw" data in JSON format.
-
Browser - Chrome, Firefox, Edge have built-in HAR viewers:
- Open DevTools → tab Network <TAG1> drag the HAR file there and it will appear as a query list.
Convenient viewers
- Google HAR Analyzer - web service from Google for visualization. https://toolbox.googleapps.com/apps/har_analyzer/
- HAR Viewer (online tools like harviewer.org).
- Fiddler, Charles Proxy, Wireshark - professional network traffic analysis tools that support HAR import.
This post doesn't have any additions from the author yet.