Capture a HAR File
Steps to Capture HAR file for troubleshooting
What is a HAR file?
A HAR file is used mainly for identifying performance issues, such as bottlenecks, slow load times, or page rendering problems. It is frequently used by developers and security researchers to analyze and detect vulnerabilities, supervises every resource loaded by the browser together with timing information for each resource. Several HTTP-related tools such as Electron HAR, HttpWatch, and HTTP Toolkit can export HAR files, but these files are usually exported by web browsers. The majority of browsers support the format including including Google Chrome, Mozilla Firefox, and Safari.
Below are the steps to generate the HAR file from the most commonly-used browsers.
Generate a HAR file in Google Chrome
Open Chrome and go to the page where the issue is occurring.
Look for the vertical dots icon and select More Tools > Developer Tools.
From the panel that appears, select the Network tab. Optionally, if a HAR file with WebSockets is requested, select the WS option in the Network tab. Reload your browser to start seeing the traffic over the WebSocket.
Look for a round record button in the upper left corner of the tab, and make sure it is red. If it is grey, click the button once to start recording.
Check the box Preserve log.
Select the clear button to clear any existing logs from the network tab.
Reproduce the issue while the network requests are recorded.
Select the download icon > Export HAR to download, and save the file to your local device: Save as HAR with Content.
You're done! Please attach the HAR file to your email or case with us so that we can assist further.
Generate a HAR file in Mozilla Firefox
Press F12 on your keyboard
Select the Network tab.
To the top right of the console, select the gear icon, then select Persist Logs.
Leave the network tab open, and in the browser page reproduce the issue.
After you have reproduced the issue, right-click on any line and select Save all as HAR.
You're done! Please attach the HAR file to your email or case with us so that we can assist further.
Generate a HAR file in Safari
Open Safari.
In Safari, go to the affected webpage.
To enable Developers Tool: Safari > Preferences > Advanced, then select Show Develop menu in menu bar
Select Develop > Show Web Inspector > Network.
Within the Network tab, select the Preserve log option.
Refresh the page to replicate the error and allow Safari to record the browser-website interaction.
Once the page is loaded, select Export on the top right in the window of the Network tab.
Select the Console tab and screen capture the errors.
Last updated