Creating a HAR file to output browser traffic for diagnostics
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
- Red Hat JBoss Web Server
- 2.x
- Red Hat Single Sign-On (SSO)
- 7.x
- Red Hat OpenShift Container Platform (OCP)
- 3.x
- 4.x
Issue
- How to create a HAR file to output browser traffic for diagnostics?
Resolution
Disclaimer: Links contained herein to an 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
.
The specification for the HTTP Archive (HAR) format defines an archival format for HTTP transactions that can be used by a web browser to export detailed performance data about web pages it loads. The specification for this format is produced by the Web Performance Working Group
of the World Wide Web Consortium (W3C)
. The specification is in draft form and is a work in progress.
Some of the browsers that support HAR are:
- Mozilla Firefox
- Google Chrome
- Microsoft Edge
- Internet Explorer 9
Instructions to acquire a HAR file depend on web browser. Refer to its official documentation.
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.