This article explains how to create a HAR file in your browser.
In some cases, Hornetsecurity Support may ask you for a HAR file to analyze a reported issue in more detail. A HAR file contains recorded network requests from the browser. This allows Support to determine which requests were sent and answered when the error occurred.
Important security notice!
A HAR file may contain sensitive data, such as:
- Login credentials
- Session tokens
- Cookies
- Personal data
- Content from form fields
Remove sensitive data from the HAR file before sending it to Hornetsecurity.
To do this, open the HAR file with a text editor and search for terms such as password, token, cookie, or authorization. Replace sensitive values with placeholders, for example *****.
Chrome
- Open Chrome and go to the page where the problem occurs.
- Look for the ⋮ button and select More tools > Developer tools. Alternatively, press the F12 key on your keyboard.
- In the window that appears, select the Network tab. You must leave the menu open while reproducing the problem.
- Before starting the recording, click the small icon next to the red recording icon once to delete previously recorded events.
- Locate the round recording button in the upper-left corner of the tab and make sure it is red. If it is gray, click the button once to start recording.
- If this is not the case, select the Preserve log checkbox.
- Click the button with the crossed-out circle to delete all existing logs from the “Network” tab.
- Reproduce the problem while the network requests are being recorded.
- Click the download button, Export HAR, to download the file and save it on your computer: Save with Content as HAR . Alternatively, right-click anywhere in the Name column and select Save all as HAR with content
-
Important: Remove your personal login credentials from the file. To do this, open the HAR file with a text editor and search for
"password". Locate your password in plain text and replace it with a placeholder (e.g., "*****"). Save the file. - You're done! Please send us the HAR file so that we can continue the analysis.
Below you will find a short animation showing the steps for retrieving a HAR file in Chrome.
Firefox
- Open Firefox and go to the page within the Control Panel where the problem occurs.
- Select the Firefox menu (three horizontal, parallel lines) in the upper-right corner of your browser window, and then select More tools > Web Developer Tools. Alternatively, press the F12 key on your keyboard.
- In the window that appears, select the Network Monitor tab. You must leave the menu open while reproducing the problem.
- Clear the current log by clicking the trash can icon .
- Reproduce the problem while the network requests are being recorded.
- Right-click anywhere below the File column and click Save All As HAR.
- Save the HAR file in a suitable location.
-
Important: Remove your personal login credentials from the file. To do this, open the HAR file with a text editor and search for
"password". Locate your password in plain text and replace it with a placeholder (e.g., "*****"). Save the file. - You're done! Please send us the HAR file so that we can continue the analysis.
Below you will find a short animation showing the steps for retrieving a HAR file in Firefox.
Safari
- Open Safari and go to the Develop menu. If you do not see the Develop menu, follow the instructions in this article in the Safari User Guide: Use the developer tools in the Develop menu in Safari on Mac.
- Select Show Web Inspector. Alternatively, press ⌥ + ⌘ + I
- Clear the current log by clicking the trash can icon .
- Click the Network tab. It must remain open while you reproduce the problem.
- Reproduce the problem while the network requests are being recorded.
- Click the Export icon and save the HAR file.
-
Important: Remove your personal login credentials from the file. To do this, open the HAR file with a text editor and search for
"password". Locate your password in plain text and replace it with a placeholder (e.g., "*****"). Save the file. - You're done! Please send us the HAR file so that we can continue the analysis.
If you have problems generating a HAR file in Safari, read this article on the Safari Developer website: Web Inspector.
Edge
- Open Edge and go to the page where the problem occurs.
- Look for the button with the three horizontal dots and select More tools > Developer tools. Alternatively, press the F12 key on your keyboard.
- In the window that appears, select the Network tab. You must leave the menu open while reproducing the problem.
- Before starting the recording, click the small icon next to the red recording icon once to delete previously recorded events.
- Locate the round recording button in the upper-left corner of the tab and make sure it is red. If it is gray, click the button once to start recording.
- If this is not the case, select the Preserve log checkbox.
- Click the button with the crossed-out circle to delete all existing logs from the “Network” tab.
- Reproduce the problem while the network requests are being recorded.
- Click the download button, Export HAR, to download the file and save it on your computer: Save with Content as HAR . Alternatively, right-click anywhere in the Name column and select Save all as HAR with content
-
Important: Remove your personal login credentials from the file. To do this, open the HAR file with a text editor and search for
"password". Locate your password in plain text and replace it with a placeholder (e.g., "*****"). Save the file. - You're done! Please send us the HAR file so that we can continue the analysis.
Below you will find a short animation showing the steps for retrieving a HAR file in Edge.