How to generate a HAR file

Follow
Table of Contents

Task

When troubleshooting an issue that is reproducible in a browser, it is sometimes necessary to have additional information about the requests and responses. You may be requested to generate a HAR file recording to capture this and attach this to a ticket for analysis.

Please note, the information collected in a HAR file can contain sensitive data like content, headers, and cookies. This is not always the case, and some information is transient only. However, please check and santise the information as necessary before uploading.

Pre-requisites

A browser that can reproduce the issue, we've covered Chrome and Firefox in this article.

The issue should be occuring or reproducible at the time of the collection to contain an example of the issue.

Steps

Open your browser ready to reproduce the issue.

Chrome

  • From the menu, select View > Developer > Developer Tools
  • From the pane, click on the Network tab
  • Locate the Preserve log setting in the upper left and ensure it is checked
  • Locate the record button, it should be a red circle to indicate that it is currently recording, if it is grey, click it once to start recording
  • Follow any steps needed to reproduce the issue during the recording
  • Once the issue has occurred, right click in the pane and select Save as HAR with Content

Here is an animation showing this process:

Chrome HAR animation

Firefox

  • From the menu, select Tools > Web Developer > Network
  • The recording to start automatically with any further navigation in the browser
  • Follow any steps needed to reproduce the issue with the network pane open
  • Once the issue has occurred, right click in the pane and select Save all as HAR

Here is an animation showing this process:

Firefox HAR animation

Upload the HAR file

Generally, HAR files are small in size, however if the file are too large to upload directly to the ticket, please request or use the provided temporary upload location.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.