19

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?

Barbara Jensen
  • 509
  • 1
  • 3
  • 12

2 Answers2

11

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.

Matt Gallagher
  • 14,858
  • 2
  • 41
  • 43
  • 1
    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. – KhalilRavanna Jun 24 '20 at 13:53
  • 1
    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. – Paul A. Jun 26 '20 at 19:36
  • 7
    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`. – user Sep 16 '20 at 16:15
  • 1
    Where does it export to? The button is not grayed out, but when I click it, nothing happens. – Cameron Hudson Mar 29 '22 at 21:40
1

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

julianm
  • 2,393
  • 1
  • 23
  • 24