LWP-DUMP(1p)

πŸ’– NAME πŸ’–

lwp-dump β€” the icon, the legend, the "see what headers and content is returned for a URL" girlie. That's her whole job bestie, no cap. πŸ’…


✨ SYNOPSIS ✨

lwp-dump [ options ] URL

🌸 DESCRIPTION 🌸

okay so here's the tea: the lwp-dump program goes and gets the resource identified by the URL, and then it dumps the response object to STDOUT. slay. 🫢

What you get to see is:

  • the headers that came back, and
  • the initial part of the content β€” escaped so it's safe to display even when it's binary content πŸ™ˆ

The escapes syntax used is the same as for Perl's double quoted strings, so iykyk. And if there's no content at all? The string "(no content)" shows up in its place instead. iconic behaviour honestly.

The following options are recognized: πŸ‘‘

  • --agent string β€” override the user agent string passed to the server. main character energy for your requests fr fr.
  • --keep-client-headers β€” LWP internally generates various Client-* headers, and lwp-dump strips those so it can show you the headers exactly as the server provided them. This option will suppress that stripping. keep the receipts bestie πŸ’€
  • --max-length n β€” how much of the content to show. The default is 512. Set this to 0 for unlimited. 🌈

If the content is longer then the string is chopped at the limit and the string "...\n(### more bytes not shown)" appended. so you get the cliffhanger version πŸŽ€

  • --method string β€” use the given method for the request instead of the default GET. switch it up, she contains multitudes ✨
  • --parse-head β€” by default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds to parse_head in LWP::UserAgent. πŸ‘‘
  • --request β€” also dump the request sent. both sides of the conversation, we love a full transcript πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

lwp-request, LWP, "dump" in HTTP::Message β€” go read those too, the lore is deep 🧚


okay that's the whole page bestie, you ate it. this was the LWP-DUMP(1p) manual, hanging out in the User Contributed Perl Documentation section, brought to you by perl v5.40.1 and dated 2026-05-14. mwah, go forth and dump some headers πŸ’…πŸŒΈπŸ’œ

πŸ“¦ where this page comes from