A HAR file is a JSON-formatted archive file used for logging a web browser's interactions with a web site. We can use the contents of a HAR file to troubleshoot issues with any product that runs in a web browser or consumes a web service.
How to generate a HAR file in Firefox
- Open Firefox.
- Load the website that has the issue.
- Click the
menu in the upper right.
- Select More tools > Web Developer Tools.
- Click on the Network tab.
- Refresh the page.
- Once the page has reloaded, go through the steps that cause the issue and allow Firefox to record the full browser-website interaction.
- Right-click on one of the network entries in the list.
- Select "Save All As HAR".
- Attach the HAR file to the support ticket.
How to generate a HAR file in Chrome/Edge
As of September 30, 2024 with the release of Chrom 130, HAR exports now exclude sensitive data by default. To export logs with the sensitive data, follow these steps:
With the developer tools open, click on the Settings icon in the top-right:
Under Preferences > Network, check the box for Allow to generate HAR with sensitive data:
Then when you want to save the content as a HAR, long-press on the Export button and select "Export HAR (with sensitive data)":
- Open Google Chrome or Microsoft Edge.
- Load the website that has the issue.
- Click the
menu in the upper right.
- Select More tools > Developer tools.
- Click on the Network tab.
- Enable exporting HAR with sensitive data as described in the above screenshots.
- Refresh the page.
- Once the page has reloaded, go through the steps that cause the issue and allow Chrome/Edge to record the full browser-website interaction.
- Long-press on the Export button
- Select "Export HAR (with sensitive data)"
- Attach the HAR file to the support ticket.
How to generate a HAR file in Safari
- Open Safari.
- Load the website that has the issue.
- If you do not see the Develop menu in the upper menu bar, activate it by following these steps:
- In the upper menu bar, select Safari > Settings.
- Click on the Advanced tab.
- Check the “Show features for web developers" box.
- In the upper menu bar, select Develop > Show Web Inspector. This should open the Network tab of the developer tools.
- Refresh the page.
- Once the page has reloaded, go through the steps that cause the issue and allow Safari to record the full browser-website interaction.
- Right-click on one of the the network entries in the list.
- Select "Export HAR".
- Attach the HAR file to the support ticket.
Comments
0 comments
Article is closed for comments.