macOS / binaries /

lwp-dump

/usr/bin/lwp-dump
See what headers and content is returned for a url

The lwp-dump program will get the resource identified by the URL and then dump the response object to STDOUT. This will display the headers returned and the initial part of the content, escaped so that it's safe to display even binary content.

source: man