A HAR (HTTP Archive) file is a log of network requests that occur when a browser interacts with a website. It is an essential tool for troubleshooting performance issues, such as slow page loads, or debugging API errors.
General Instructions
While the layout varies slightly between browsers, the core steps are generally the same:
Open the Developer Tools.
- Navigate to the Network tab.
- Record the activity while reproducing the issue.
- Export the resulting log as a
.harfile.
Google Chrome, Microsoft Edge
Since these browsers are built on the Chromium engine, the process is nearly identical.
Open the browser and go to the page where the issue occurs.
Open the browser and go to the page where the issue occurs.
- Press
F12(orCmd + Option + Ion Mac) to open Developer Tools. - Click on the Network tab.
- Look for a small round record button in the upper left corner of the tab. Ensure it is red (recording).
- Check the box for Preserve log.
- Click the Clear button (a circle with a diagonal line) to remove existing logs.
- Reproduce the issue on the page.
- Once finished, click the Export HAR icon (an arrow pointing down) or right-click any row in the network log and select Save all as HAR with content.
Mozilla Firefox
- Open Firefox and navigate to the problematic page.
- Press
F12(orCmd + Option + Ion Mac). - Click the Network tab.
- Click the gear icon (Settings) in the upper right of the Network pane and select Persist Logs.
- Refresh the page or perform the actions needed to reproduce the issue.
- Right-click anywhere within the list of requests and select Save All As HAR.
Safari
Before you can extract a HAR file in Safari, you must enable the "Develop" menu.
- Enable Develop Menu: Go to
Safari > Settings > Advancedand check the box for "Show features for web developers" (or "Show Develop menu in menu bar").
- Navigate to the website.
- Open the Develop menu and select Show Web Inspector.
- Click the Network tab.
- Ensure Preserve Log is checked (usually a small icon that looks like a page with a plus sign or found in the settings).
- Refresh the page and reproduce the issue.
- Click Export in the top right corner of the Network tab to save the HAR file.
Important Privacy Note
WARNING: HAR files contain sensitive information, including cookies, session tokens, and personal data submitted in forms. Due to the fact you are sending this file to a support team, ensure you are logged out of sensitive accounts or use an Incognito/Private window to generate the file.
Related to