How do I generate a HAR file?
When troubleshooting IBM Cloud Internet Services, it can be helpful to generate an HTTP Archive (HAR) file. The HAR file is a record of all web browser requests including the request and response headers, the body content, and the page load time.
You have an issue using CIS and need to generate a HAR file for Support.
A HAR file can include sensitive details such as passwords, payment information, and private keys. Manually remove sensitive information from HAR files using a text editor before you provide the file to Support.
Use the following sections to generate HAR files in Firefox, Chrome, or Safari browsers.
How to generate a HAR file in Firefox
- In Firefox, go to the page within CIS where you are experiencing trouble.
- Select the Firefox menu (three horizontal parallel lines) at the upper-right of your browser window, then select Developer > Network.
- The Developer Network Tools open as a docked panel at the side or bottom of the browser window. Click the Network tab.
- The recording starts automatically after you start performing actions in the browser.
- Refresh the CIS page that you are on, or go through the steps to reproduce the problem you've been experiencing while Firefox is recording activity.
- After you have reproduced the issue, right-click anywhere under the File column in the docked panel and click Save All As HAR.
- Save the HAR file in a location you choose, and send the file to Support.
How to generate a HAR file in Chrome
- In Chrome, go to the page within CIS where you are experiencing trouble.
- Select the Chrome menu (three vertical dots) at the top-right of your browser window, then select Tools > Developer Tools.
- The Developer Tools open as a docked panel at the side or bottom of the browser window. Click the Network tab.
- Select the option Preserve log.
- The recording starts automatically, and a red "Record network log" icon appears at the top left of the Network tab. If not, click the black "Stop recording network log" icon, to start recording activity in your browser.
- Refresh the CIS page you are on or go through the steps to reproduce the problem you've been experiencing while Chrome is recording activity.
- After you have successfully reproduced the issue while recording, right-click any of the items within the Network tab and select Save all as HAR with Content to save a copy of the activity that you recorded.
- Save the HAR file in a location you choose, and send the file to Support.
How to generate a HAR file in Safari
-
In Safari, first check to see if you have a "Develop" menu at the top of the page. If not, go to Safari > Preferences > Advanced and check "Show Develop Menu in menu bar".
-
In Safari, go to the page within CIS where you are experiencing trouble.
-
Navigate to Develop > Show Web Inspector. This menu option is not available until you browse somewhere beyond Safari's starting page. The Web Inspector opens as a docked panel at the bottom of Safari.
-
Click the Network tab.
-
Refresh the CIS page that you are on or go through the steps to reproduce the problem you've been experiencing while Safari is recording activity.
-
After you have reproduced the issue, Control + click the resource that you want to capture the HAR file for, and click "Export HAR".
-
Save the HAR file in a location you choose, and send the file to Support.
How to generate a HAR file in Microsoft Edge
-
In Microsoft Edge, go to the page within CIS where you are experiencing trouble.
-
Click the Edge menu (three vertical dots) at the top-right of your browser window, then select More Tools > Developer Tools.
-
Select the Network tab, then click Record in the upper left corner of the tab and verify that it is recording. If it is not yet recording, click Record to start recording.
-
Check the box next to Preserve Log.
-
Select Clear to remove any existing logs from the Network tab. Do not close the Developer Tools panel. This ends the recording and the HAR file will be lost.
-
Refresh the CIS page you are on or go through the steps to reproduce the problem you've been experiencing while Edge is recording activity.
-
After you have reproduced the issue, right-click anywhere on the grid of network requests and choose "Save as HAR with Content".
-
Save the HAR file in a location you choose, and send the file to Support.