How can you export a har file on Safari?

10,698

Solution 1

When you have the "Web inspector" visible in Safari and you're viewing the "Network" tab, the "Export" button at the top right will export a HAR file of the last loaded page.

Solution 2

You can also right click on a single request and click save to a file.

Share:
10,698

Related videos on Youtube

Barbara Jensen
Author by

Barbara Jensen

I am a WebSphere Application Server security developer and L3 at IBM. My focus is single sign-on and WS-Security. The views expressed on this web site are my own and do not necessarily reflect the views of IBM.

Updated on June 04, 2022

Comments

  • Barbara Jensen
    Barbara Jensen almost 2 years

    I have instructions to give to customers for how to send in har files for debugging SSO issues for all common browsers but Safari. Remote debug is not an option. My current instructions basically say "you can't do this on Safari"; I've seen others say this too.

    I found this relatively recent stackoverflow post yesterday that says you can at least make the data persist now:

    Safari Developer Tools: Preserve Network Log on Navigation

    So now I need to export it. I found this link that gives some instructions, but at the last step, we don't see the 'copy all as HAR' selection.

    http://help.catchsoftware.com/display/ET/Collecting+Browser+Performance+Information

    Does anyone know how to export the browser network traffic on Safari? Am I missing something?

  • KhalilRavanna
    KhalilRavanna almost 4 years
    One thing to note, when I try to do this using a localhost server, "Export" is greyed out most of the time so I can't actually download a HAR. Couldn't find any clues as to why this might be by some googling around. Safari version = 13.0.4, Mac version = 10.15.2.
  • Paul A.
    Paul A. almost 4 years
    Export not working for localhost in Safari 13.1.1 and Safari Technology Preview Release 109 (Safari 14.0) on macOS 10.15.5. Export is not greyed out, but clicking does not work.
  • Syed Danish Ali
    Syed Danish Ali over 3 years
    If your Export HAR option is greyed out try refreshing the page with the Web Inspector open. If you open Web Inspector after the page loads you won't be able to Export HAR.
  • Cameron Hudson
    Cameron Hudson about 2 years
    Where does it export to? The button is not grayed out, but when I click it, nothing happens.