Make a request and print response headers and status chain

lwp-request

  • Simple command-line HTTP client.
    Built with libwww-perl.
    More information: <https://metacpan.org/pod/lwp-request>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

lwp-request -E -m {{METHOD}} {{http://example.com/some/path}}

click the source code to copy install lwp-request on any operating system with command-not-found.com