How to generate a HAR file

If you need detailed information about network requests within your browser for troubleshooting, generating a HAR file would be helpful. This article helps you know the steps on how to generate a HAR file.

Description description

Environment

Adobe Experience Manager

Issue

You may need detailed information about network requests within your browser for troubleshooting.

A HAR file is helpful because it contains HTTP transaction history of the browser. This article describes how to generate the HAR file.

Web Browser Environments

  • Chrome
  • Edge
  • Firefox
  • Safari

Resolution resolution

Chrome and Edge

  1. Open the page where the issue occurs.
  2. Press F12 to open DevTools.
  3. Select the Network tab.
  4. Select Preserve log checkbox.
  5. Select Disable cache checkbox.
  6. Reproduce the problem you want to investigate and confirm that the Network tab displays detailed HTTP transactions.
  7. Right-click anywhere in the list of network requests.
  8. Select Save all as HAR with content.
  9. Choose a location and save the file.

Note for Chrome/Edge version 130:

By default, HAR files exclude Cookie and Authorization headers due to privacy changes. To include these sensitive headers for troubleshooting:

  1. Open DevTools Settings (typically the gear icon in the DevTools window).
  2. Select Allow to generate HAR with sensitive data.
  3. After reproducing the issue, long-press the Export button in the Network tab, and select Export HAR (with sensitive data) from the dropdown menu.

Firefox

  1. Open the page where the issue occurs.
  2. Press F12 to open DevTools.
  3. Select the Network tab.
  4. Select the gear icon and enable Persist logs.
  5. Select Disable Cache check box.
  6. Reproduce the problem you want to investigate and confirm that the Network tab displays detailed HTTP transactions.
  7. Select the gear icon again and choose Save All As HAR.
  8. Choose a location and save the file.

Safari

  1. Open DevTools (press ⌥⌘I (Option + Command + I) on your keyboard).
  2. Select the Network tab.
  3. Check the Preserve Log checkbox.
  4. Reproduce the problem you want to investigate and confirm that the Network tab displays detailed HTTP transactions.
  5. Select Export.
  6. Specify a file name and save it.

.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f