Comment on page
Capture a HAR File
Steps to Capture HAR file for troubleshooting
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.
- 1.Open Chrome and go to the page where the issue is occurring.
- 2.Look for the vertical dots icon and select More Tools > Developer Tools.
- 3.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.
- 4.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.
- 5.Check the box Preserve log.
- 6.Select the clear button to clear any existing logs from the network tab.
- 7.Reproduce the issue while the network requests are recorded.
- 8.Select the download icon > Export HAR to download, and save the file to your local device: Save as HAR with Content.
- 9.You're done! Please attach the HAR file to your email or case with us so that we can assist further.
- 1.Press F12 on your keyboard
- 2.Select the Network tab.
- 3.To the top right of the console, select the gear icon, then select Persist Logs.
Use the Firefox inspector to persist logs
- 4.Leave the network tab open, and in the browser page reproduce the issue.
- 5.After you have reproduced the issue, right-click on any line and select Save all as HAR.
Save the logs as a HAR file from the Network tab
- 6.You're done! Please attach the HAR file to your email or case with us so that we can assist further.
- 1.Open Safari.
- 2.In Safari, go to the affected webpage.
- 3.To enable Developers Tool: Safari > Preferences > Advanced, then select Show Develop menu in menu bar
- 4.Select Develop > Show Web Inspector > Network.
- 5.Within the Network tab, select the Preserve log option.
- 6.Refresh the page to replicate the error and allow Safari to record the browser-website interaction.
- 7.Once the page is loaded, select Export on the top right in the window of the Network tab.
- 8.Select the Console tab and screen capture the errors.