Question
How can I generate a HAR file for assisting in troubleshooting local network or browser issues?
Answer
A HAR file (Http Archive) is a log of network requests and page loads that occur during the recorded time period that can be used to troubleshoot locally occurring issues that can't be reproduced on a separate device.
CPANEL_WARN: A HAR file includes data such as the content of cookies and the pages you download when you record. Anyone with access to the HAR file can view the data you submit during the record process, which can include personal or sensitive data. Secure HAR files accordingly. Cloudflare released a HAR sanitizer to strip sensitive information:
Cloudflare: Introducing HAR Sanitizer: secure HAR sharing
HAR files can be generated using your browser:
- Open the Browser Menu and select "More Tools / Developer Tools" to open the Console.
-
Select the "Network" tab in the Console, and ensure the "Record" button in the top left is enabled.
- Reproduce the issue you are seeing while keeping the Console and "Network" tab open. This will record the network activity requested during the page load.
-
When you have successfully reproduced the issue, select the "Download" button to export a HAR file containing the information recorded durring the session.
- Open the Browser Menu and select "More Tools / Web Developer Tools."
-
Select the "Network" tab
- Reproduce the issue you are seeing while keeping the Web Developer Tools and "Network" tab open. This will record the network activity requested during the page load.
-
When you have successfully reproduced the issue, select the "Gear" button and "Save All as HAR" to export a HAR file containing the information recorded durring the session.
- You must first enable developer settings to open the required menu. From the "Safari" menu, select "Settings."
- Under the "Advanced" tab, enable the option "Show features for web developers."
-
In the newly revealed "Develop" menu in Safari, enable the "Web Inspector" and select the "Network" tab.
- Reproduce the issue you are seeing while keeping the Web Developer Tools and "Network" tab open. This will record the network activity requested during the page load.
-
When you have successfully reproduced the issue, select the "Export" button to export a HAR file containing the information recorded durring the session.
Comments
0 comments
Article is closed for comments.