A HAR file is a text file that contains information about a web page's network requests. It can be used to troubleshoot performance issues, debug JavaScript, and analyze web traffic.
To create a HAR file, you can use the developer tools in your web browser. The steps for creating a HAR file vary depending on the browser you are using. Please see below for how to generate a HAR file:
Creating a HAR File in Google Chrome
For Windows Users
Open Google Chrome.
Go to the web page you want to create a HAR file for.
Right-click on the page and select Inspect.
In the developer tools that open, click the Network tab.
Make sure that the Preserve log checkbox is checked.
Click on the Start recording button.
Navigate to the web page that is causing the issue.
Once you have reproduced the issue, click on the Stop recording button.
Select the download button
Save the file to a location of your choice.
For Mac Users
Open Google Chrome.
Go to the web page you want to create a HAR file for.
Right-click on the page and select Inspect.
In the developer tools that open, click the Network tab.
Make sure that the Disable Cache checkbox is checked.
Click on the Start recording button.
Navigate to the web page that is causing the issue.
Once you have reproduced the issue, click on the Stop recording button.
Select the down arrow to Export the HAR file
Creating a HAR File in Mozilla Firefox
Open Mozilla Firefox.
Go to the web page you want to create a HAR file for.
Click on the Tools menu and select Web Developer.
In the Web Developer menu, select Network.
Make sure that the Enable logging checkbox is checked.
Click on the Start logging button.
Navigate to the web page that is causing the issue.
Once you have reproduced the issue, click on the Stop logging button.
Right-click on any of the requests in the list and select Save all as HAR.
Save the file to a location of your choice.
Creating a HAR File in Microsoft Edge
Open Microsoft Edge.
Go to the web page you want to create a HAR file for.
Click on the three dots in the top right corner of the browser window and select More tools.
In the More tools menu, select Developer tools.
In the Developer tools that open, click on the Network tab.
Make sure that the Enable logging checkbox is checked.
Click on the Start capturing button.
Navigate to the web page that is causing the issue.
Once you have reproduced the issue, click on the Stop capturing button.
Right-click on any of the requests in the list and select Save all as HAR.
Save the file to a location of your choice.
Once you have created a HAR file, you can open it in a text editor or a web analytics tool to view the information about the web page's network requests.
Creating a HAR File in Safari
Open Safari.
Go to the web page you want to create a HAR file for.
Click on Settings
Select Advanced
Click Show Develop menu (afterward, close the window)
Select Develop in the menu
Select Show Web Inspector
Select Network tab
Within the Networks tab, select Preserve log
Refresh the page to replicate the error and allow Safari to record the browser-website interaction.
Once the page is loaded, click on Export in the top right in the window of the Network tab.
Select the Console tab and screen capture the errors
💡 Tip
Need more help? Feel free to reach out to us via Live Chat or check out our Customer Community.
Find answers and get help from Meltwater Support and Community Experts.