Capturing Browser Traffic With an HAR (HTTP Archive) For Troubleshooting
Environment
- Google Chrome
- Mozilla Firefox
- Microsoft Edge
- Microsoft Internet Explorer
- Opera Browser
Issue
- Need analysis on state of the chrome browser when reproducing an issue
- Need to send log of all web traffic for diagnostics
- How to collect data from web browsers to troubleshoot issues like performance, rendering, etc?
- How to create a HAR file to output browser traffic for diagnostics?
Resolution
Disclaimer: The following information has been provided by Red Hat, but is outside the scope of the posted Service Level Agreements and Scope of Coverage. Red Hat does not support software contained in the EPEL repository, or other third-party repositories, or from third-party non-Red Hat sources. The information is provided as-is without representations or warranties about the suitability or accuracy of the information provided. The intent is to provide information to accomplish the system's needs. Use of the information below is at the user's own risk.
Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.
-
The "HTTP Archive format" or
HAR, is a JSON-formatted archive file format for logging of a web browser's interaction with a site. The common extension for these files is.har. -
Instructions to acquire a HAR file depend on web browser. Refer to its official documentation:
- Content from developer.mozilla.org is not included.Mozilla Firefox
- Content from support.google.com is not included.Google Chrome
- If you need to capture traffic with cookies, please enable the "Allow to generate HAR with sensitive data" option in the Network section of the DevTools Settings screen before performing the capture.
- Microsoft Edge
- Content from msdn.microsoft.com is not included.Microsoft Internet Explorer
- Content from help.opera.com is not included.Opera Browser
NOTE: passwords may be visible in the HAR content file so please remove them before uploading. The HAR content will give a detailed view into what the browser sees
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.