Let's see an example of how you can get the HTTP Request or Response headers in Safari web browser for macOS,
Let's open Safari and visit google.com and search for the team java and see what the request-response headers are,

Safari - Request Response Header Example
As you can see in the above gif example, right-click on the webpage and select "Inspect element", go to the network tab, you may see a lot of entries of all kind of files loaded: CSS, images, javaScript, etc, you can select the Documents tab just to see the webpages request - click on Headers and you would see the Request and Response headers.
Request::method: GET
:scheme: https
:authority: www.google.com
:path: /search?q=java&client=safari&sxsrf=xxx%xxx&ei=xxx-EPxtaMuAg&oq=java&gs_lcp=xxx&sclient=gws-wiz&ved=xxx
Cookie: CGIC=XXX
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Host: www.google.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15
Accept-Language: en-us
Referer: https://www.google.com/
Connection: keep-alive
Response:
:status: 200
Content-Type: text/html; charset=UTF-8
Set-Cookie: 1P_JAR=2021-07-25-10; expires=Tue, 24-Aug-2021 10:47:57 GMT; path=/; domain=.google.com; Secure; SameSite=none
Set-Cookie: SIDCC=xxx; expires=Mon, 25-Jul-2022 10:47:57 GMT; path=/; domain=.google.com; priority=high
Set-Cookie: __Secure-3PSIDCC=xxx; expires=Mon, 25-Jul-2022 10:47:57 GMT; path=/; domain=.google.com; Secure; HttpOnly; priority=high; SameSite=none
Date: Sun, 25 Jul 2021 10:47:57 GMT
X-Frame-Options: SAMEORIGIN
Content-Encoding: gzip
X-XSS-Protection: 0
Cache-Control: private, max-age=0
Expires: -1
Server: gws
Strict-Transport-Security: max-age=31536000
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Comments:
- Further comments disabled!
More Posts related to MacOS,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- Error: Failed to validate the signature of the actionable message card - Power Automate Flow - PowerAutomate
- List of Online Java compiler with console - Java
- Share image and text Twitter using your Android Application Programatically - Twitter
- Hurry! Uninstall Adobe Flash Player - End Of Life, support end in December 2020 - News
- How to List All Users in Linux - Linux
- Base 64 Encoding Decoding In Notepad++ - NotepadPlusPlus
- Java 8 java.util.Function and BiFunction Examples - Java
- Fix: Maven - Failed to execute goal - Compilation failure - Source/Target option 5 is no longer supported. Use 7 or later - Java