LWP-DUMP(1)
okay so bestie, welcome to lwp-dump(1) β a.k.a. the lwp-dump page from the User Contributed Perl Documentation β and she is literally here to spill the tea on what a URL gives back π
β¨
πΈ NAME πΈ
lwp-dump β see what headers and content is returned for a URL. That's the whole gig, and she ate.
β¨ SYNOPSIS β¨
lwp-dump [ options ] URL
π DESCRIPTION π
The lwp-dump program will get the resource identified by the URL and then dump the response object to STDOUT. It displays the headers returned and the initial part of the content, escaped so that it's safe to display even binary content. The escape syntax used is the same as for Perl's double quoted strings, iykyk. If there is no content, the string (no content) is shown in its place. Not a single byte of content? She still shows up with a little placeholder, iconic.
π the options it recognizes π
--agentstring β override the user agent string passed to the server. Go ahead, cosplay as a different browser, no cap.--keep-client-headersβ LWP internally generates variousClient-*headers that are stripped bylwp-dumpin order to show the headers exactly as the server provided them. This option will suppress this. You get the raw-ish header tea,Client-*and all.--max-lengthn β how much of the content to show. The default is512. Set this to0for unlimited.
If the content is longer, the string is chopped at the limit and the string "...\n(### more bytes not shown)" is appended. So dramatic, but also so helpful.
--methodstring β use the given method for the request instead of the defaultGET. Be the main character with your own HTTP verb.--parse-headβ by defaultlwp-dumpwill not try to initialize headers by looking at the head section of HTML documents. This option enables this. It corresponds toparse_headinLWP::UserAgent. Very "look closer at the HTML" of it all.--requestβ also dump the request sent. Now you see both sides of the conversation, bestie.
π¦ SEE ALSO π¦
lwp-requestLWP"dump" in HTTP::Message
mwah π β this page is from perl v5.42.0, dated 2026-05-18. bye bestie, go dump some URLs responsibly π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-libwww-perl 6.770.0-160000.3.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms