How to inspect request and response headers on Safari?
Learn how to inspect request and response headers on Safari.
Steps
1. Enable Developer Mode
On Safari, first, you have to enable Develop Menu.
- Click Safari button on top left corner.
- Open up Safari preferences.
- Select Advanced tab.
- Check ‘Show Develop menu in menu bar’.
Please refer to the following image for the above listed steps.
2. Open up Safari Web Inspector
You can open by Safari Web Inspector by selecting Develop menu and click Show Web Inspector
button.
Please refer to the following image for the above listed steps.
3. Open up Network tab
With web inspector opened,
- Navigate to Network tab and you can see the files requested over network.
- Select one of the requested items and go to its Headers item.
- You can see the following image showing Summary, Request and Response sections.
Please refer to the following image for the above listed steps.
4. Refresh the page
- Refresh the page by using the refresh button next to the address bar.
- Network Request and Response Headers will be listed.
You can see network request and response headers similar to the image below.
Mac Shorcuts / Hotkeys
You would be more productive if you know the shorcuts to the above steps. When you are familiar with the shortcut keys, you can speed up and use your time on developing and solving problems.
Shortcuts or hotkeys to inspect network requests and responses on Safari:
Actions | Shortcuts |
---|---|
Open Safari Preference | Command + , |
Show Web Inspector | Option + Command + i |
Close Web Inspector | Option + Command + i |
Show JavaScript Console | Option + Command + c |
Show Page Source | Option + Command + u |
Empty Caches | Option + Command + e |
Open Safari Preference | Command + , |
Refresh Page | Command + r |
With this, you can inspect your network requests and responses on Safari.
Support Jun
Thank you for reading! Support Jun
If you are preparing for Software Engineer interviews, I suggest Elements of Programming Interviews in Java for algorithm practice. Good luck!
You can also support me by following me on Medium or Twitter.
Feel free to contact me if you have any questions.
Comments