Obtain a HAR file
search cancel

Obtain a HAR file

book

Article ID: 170836

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG CASB Security Standard CASB Security Premium CASB Security Advanced CASB Audit CASB Gateway CASB Gateway Advanced Endpoint Security Endpoint Security Complete ISG Proxy ProxySG Software - SGOS Advanced Secure Gateway Software - ASG Secure Web Gateway

Issue/Introduction

Generate an HTTP Archive (HAR) file with Chrome, Firefox, Edge or Internet Explorer to log the browser's interaction with the website.

Resolution

Chrome (version 72+):

  1. Bring up the developer tools using one of these methods:
    • Keyboard shortcut:
      • Windows: F12
      • OS X: ⌘⌥I
      • Linux: Ctrl + Shift + I
    • Chrome menu:
      1. Click ⋮ in the top-right of your browser window.
      2. Select "More tools".
      3. Select "Developer tools".
  2. Navigate to the Network tab in developer tools.
  3. Check the Disable Cache option to prevent caching of resources for this page.
  4. Check the Preserve Log option to keep the logs when the browser navigates to a new page.
  5. Ensure the tool is recording by examining the circle in the upper-left corner.
    • ​If it is red, it is recording.
    • If it is black, click the circle to begin recording.
  6. Refresh the page to start capturing the traffic between the browser and the server.
    • Please capture a full page load so you can see the requests made prior to the problem you're analyzing.
  7. Complete the steps that trigger or demonstrate your issue.
  8. Right click in the data table and select "Save all as HAR with content".

Firefox (version 60+):

  1. Bring up the developer tools using one of these methods:
    • Keyboard shortcut:
      • Windows: Ctrl + Shift + E
      • OS X: Cmd + Opt + E
      • Linux: Ctrl + Shift + E
    • Firefox menu:
      1. Click ≡ in the top-right corner of the browser.
      2. Select "Web Developer".
      3. Select "Network".
  2. Check the "Disable cache" option to prevent caching of resources for this specific page.
  3. Check the "Persist Logs" option to keep the gathered log when the browser navigates to a new page.
  4. Ensure the tool is recording by examining the icon in the upper-left corner.
    • ​If it is two vertical lines (the Pause symbol), it is recording.
    • If it is a blue right-facing arrowhead (the Play symbol), click it to begin recording.
  5. Refresh the page to start capturing the traffic between the browser and the server.
    • ​Please capture a full page load so you can see the requests made prior to the problem you're analyzing.
  6. Complete the steps that trigger or demonstrate your issue.
  7. Right click in the data table and select "Save All As HAR".

Safari:

Before generating the HAR file, make sure you can see the Develop menu in Safari. Follow the instructions under Use the developer tools in the Develop menu in Safari on Mac.

  1. Open the Develop menu and select Show Web Inspector.
  2. Click the Network tab and complete the activity that is causing issues.
  3. Click the Export icon on the far right of the network tab and save the HAR file.

Edge:

See detailed instructions on the Microsoft Site.

  1. Open the Network tool in developer tools by pressing F12.
  2. Reproduce the issue.
  3. Export captured traffic as a HAR (Ctrl + S).

Internet Explorer:

You will need to use: HTTPWatch

  1. Download and install HTTPWatch.
  2. Start the HTTPWatch capture right before reproducing the behavior you want to capture.
  3. Stop the HTTPWatch capture right after reproducing the behavior.
  4. Export the capture in HAR format.