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 πŸ’…

  • --agent string β€” override the user agent string passed to the server. Go ahead, cosplay as a different browser, no cap.
  • --keep-client-headers β€” LWP internally generates various Client-* headers that are stripped by lwp-dump in 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-length n β€” how much of the content to show. The default is 512. Set this to 0 for 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.

  • --method string β€” use the given method for the request instead of the default GET. Be the main character with your own HTTP verb.
  • --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. It corresponds to parse_head in LWP::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-request
  • LWP
  • "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