Loading

How to retrieve a HAR file?

Publiceringsdatum: Jan 13, 2026
Beskrivning

Retrieving a HAR file is required to help troubleshoot network issues.

Lösning

What is a HAR file?

HAR stands for HTTP Archive and is a container for lots of trace information from within a browser. It records all web requests made by the browser tab, including the request and response headers, the body, and the time it took to load. This makes HAR files very useful when troubleshooting issues on speed, caching, and issues which are harder to replicate.

 

Please read the HAR Security Guideline before creating them in the below supported browsers.

HAR (http archive) files may contain sensitive data, including cookies, authentication tokens, and personal information. This data can lead to security risks such as impersonation and unauthorized access. 

When creating a HAR File customers must ensure that the following safeguards are completed, before the file is sent to Salesforce Support and Third Party Vendors.

  1. Sanitize: Sanitize files before sharing using a HAR sanitize ( Example -Cloudflare HAR sanitizer) or manually with a text editor, to redact sensitive information.
  2. Log Out of Sessions: If investigating non-authentication issues, log out of any active sessions before recording to enhance security and prevent capturing active session tokens.
  3. HAR Hygiene: Treat HAR files as Restricted. Restrict access to only appropriate personnel and ensure secure storage and transmission. HAR Files must never be uploaded un-sanitized outside of Salesforce (e.g. chatGPT)



How to generate one

Please follow the instructions given by the browser, and make sure you understand the implications, especially in terms of performance and security.


In Chrome

1. Browse to the URL where you're experiencing the issue.
2. Right-click anywhere on the page and select Inspect to open Developer Tools.
3. Click on the Network tab.
4. Reproduce the issue to capture the network activity.
5.Once the issue is reproduced, either:
a) Click the download button at the bottom of the Network tab to export a sanitized HAR, or,
b) Right-click within the Network tab and select Copy > Copy all as sanitized HAR. Save the  file to your system.



In Firefox

1. Browse to the URL where you are seeing the issue.
2. Navigate to Go to Tools > Web Developer > Network.
3. Refresh the page to start capturing the traffic between the browser to the server, or click on a link with which you are seeing the issue. The aim is to reproduce the issue and capture the output.
4. Click on Export followed by Save As... to save the HAR file.

 

In Safari

1. Ensure that the "Show features for web developers" in the menu bar is checked under Safari > Settings > Advanced tab.
2. Visit the web page from where you want to export the traffic.
3. Click Develop on the Menubar, then select Show Web Inspector. Refresh the page.
4. Go to the Network tab and click Export on the upper right side of the pane.



To see this information in video format, watch How to Capture HAR & Console Log Files.

Knowledge-artikelnummer

000391709

 
Laddar
Salesforce Help | Article