How can you export a har file on Safari?
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.
Related videos on Youtube
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, 2022Comments
-
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 almost 4 yearsOne 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. almost 4 yearsExport 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 over 3 yearsIf 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 toExport HAR
. -
Cameron Hudson about 2 yearsWhere does it export to? The button is not grayed out, but when I click it, nothing happens.