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: π
--agentstring β override the user agent string passed to the server. main character energy for your requests fr fr.--keep-client-headersβ LWP internally generates variousClient-*headers, andlwp-dumpstrips 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-lengthn β how much of the content to show. The default is512. Set this to0for 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 π
--methodstring β use the given method for the request instead of the defaultGET. switch it up, she contains multitudes β¨--parse-headβ by defaultlwp-dumpwill not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds toparse_headinLWP::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
- ubuntu stonking: libwww-perl 6.83-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms