Skip to main content

How to obtain a HAR file?

A HAR (HTTP Archive) file is a log of a web browser's interaction with a web page. It contains information about various network-related activities such as requests, responses, timings, and more. Here's how you can obtain a HAR file from different web browsers:

Google Chrome

  1. Open Developer Tools:

    • Right-click on the page and select "Inspect" or press Ctrl+Shift+I (Windows/Linux) or Cmd+Opt+I (Mac) to open the Chrome DevTools.

  2. Go to the "Network" Tab:

    • In the DevTools, go to the "Network" tab.

  3. Enable Recording:

    • Before recording, ensure a clear slate by clicking on the Clear button (ideally just before you are about to replicate the steps)
      ​

    • Once you are ready to replicate the steps, start the recording by clicking on the recording button
      ​

    • Ensure that the recording is enabled (the red dot is active).

  4. Stop Recording:

    • Once the page has loaded and you've captured the necessary information, stop recording by clicking the red dot.

  5. Save as HAR:

    • Right-click anywhere in the "Network" tab and select "Save as HAR with Content."

Mozilla Firefox

  1. Open Developer Tools:

    • Right-click on the page and select "Inspect Element" or press Ctrl+Shift+I (Windows/Linux) or Cmd+Opt+I (Mac) to open the Firefox Developer Tools.

  2. Go to the "Network" Tab:

    • In the Developer Tools, go to the "Network" tab.

  3. Enable Recording:

    • Before recording, ensure a clear slate by clicking on the Clear button (ideally just before you are about to replicate the steps)
      ​

    • Once you are ready to replicate the steps, start the recording by clicking on the recording button as required
      ​

    • Ensure that the recording is enabled (the Pause button should be showing after pressing play).

  4. Stop Recording:

    • Once the page has loaded and you've captured the necessary information, stop recording by clicking the red dot.

  5. Export as HAR:

    • Right-click anywhere in the "Network" tab and select "Save All as HAR."

Microsoft Edge

  1. Open Developer Tools:

    • Right-click on the page and select "Inspect" or press Ctrl+Shift+I (Windows/Linux) or Cmd+Opt+I (Mac) to open the Edge DevTools.

  2. Go to the "Network" Tab:

    • In the DevTools, go to the "Network" tab.

  3. Enable Recording:

    • Before recording, ensure a clear slate by clicking on the Clear button (ideally just before you are about to replicate the steps)
      ​

    • Once you are ready to replicate the steps, start the recording by clicking on the recording button
      ​

    • Ensure that the recording is enabled (the red dot is active).

  4. Stop Recording:

    • Once the page has loaded and you've captured the necessary information, stop recording by clicking the red dot.

  5. Save as HAR:

    • Right-click anywhere in the "Network" tab and select "Save as HAR with Content."

After saving the HAR file, you can share it with developers or use it for analysis to understand the network activity of a particular web page.


​

Did this answer your question?