on
26 Sep 2023
02:17 PM
- edited on
26 Feb 2025
08:43 AM
by
anton_konikov
This article provides information on what a HAR file is and how to generate one. It covers Google Chrome, Microsoft Edge, and Mozilla Firefox (to get a HAR file for Mobile Application with a webview, see this article).
A HAR (HTTP Archive) file is a log of all network requests made by a web page in your web browser. It includes details about each request, such as the URL, response headers, request headers, and timings.
A HAR file is a useful troubleshooting tool because it provides a comprehensive snapshot of a web page's network activity, allowing for precise issue identification.
Open Developer Tools using one of the options below:
Chrome and Edge:
To capture all network activity on the webpage, you'll need to reload the page or perform the specific actions that trigger the network requests you're interested in (e.g., submitting a form, clicking a link, etc.).
Note: the actions must be completed in the same tab as Developer Tools is open in for the traffic to be recorded
Export the HAR file using one of the methods below:
Open Network Monitor (Web Developer Tools, Network tab) using one of the options below:
and select Tools > Web Developer > Web Developer Tools. Then, select the "Network" tab
To capture all network activity on the webpage, you'll need to reload the page or perform the specific actions that trigger the network requests you're interested in (e.g., submitting a form, clicking a link, etc.).
Note: the actions must be completed in the same tab as Web Developer Tools is open in for the traffic to be recorded
Once you've captured the network activity you need, return to the "Network" tab in Web Developer Tools. You should see a list of network requests made by the webpage.
Export the HAR file using one of the methods below: