Skip to content

Instantly share code, notes, and snippets.

@scmmishra
Created March 24, 2023 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmmishra/a547794ca36f7f2dc4a3cbe28318c2e7 to your computer and use it in GitHub Desktop.
Save scmmishra/a547794ca36f7f2dc4a3cbe28318c2e7 to your computer and use it in GitHub Desktop.

Downloading HAR file

Instructions for Chrome:

  • Open Google Chrome and navigate to the website that you want to capture the HAR file for.
  • Open the Developer Tools panel by pressing F12 or right-clicking anywhere on the page and selecting "Inspect".
  • Click on the "Network" tab in the Developer Tools panel.
  • Make sure the "Preserve log" option is selected. This will ensure that all network requests are captured in the HAR file.
  • Refresh the page to start capturing the network traffic.
  • Once the page has finished loading, right-click anywhere in the Network tab and select "Save as HAR with Content".
  • Choose a location to save the HAR file and click "Save".

Instructions for Firefox:

  • Open Mozilla Firefox and navigate to the website that you want to capture the HAR file for.
  • Open the Developer Tools panel by pressing Ctrl+Shift+I or by selecting "Web Developer" > "Network" from the Firefox menu.
  • Click on the "Network" tab in the Developer Tools panel.
  • Make sure the "Persist Logs" option is selected. This will ensure that all network requests are captured in the HAR file.
  • Refresh the page to start capturing the network traffic.
  • Once the page has finished loading, right-click anywhere in the Network tab and select "Save All As HAR".
  • Choose a location to save the HAR file and click "Save".

That's it! You now have a HAR file that contains all of the network requests made by the website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment