1LWP-DUMP(1)           User Contributed Perl Documentation          LWP-DUMP(1)
2
3
4

NAME

6       lwp-dump - See what headers and content is returned for a URL
7

SYNOPSIS

9       lwp-dump [ options ] URL
10

DESCRIPTION

12       The lwp-dump program will get the resource identified by the URL and
13       then dump the response object to STDOUT.  This will display the headers
14       returned and the initial part of the content, escaped so that it's safe
15       to display even binary content.  The escapes syntax used is the same as
16       for Perl's double quoted strings.  If there is no content the string
17       "(no content)" is shown in its place.
18
19       The following options are recognized:
20
21       --agent string
22           Override the user agent string passed to the server.
23
24       --keep-client-headers
25           LWP internally generate various "Client-*" headers that are
26           stripped by lwp-dump in order to show the headers exactly as the
27           server provided them.  This option will suppress this.
28
29       --max-length n
30           How much of the content to show.  The default is 512.  Set this to
31           0 for unlimited.
32
33           If the content is longer then the string is chopped at the limit
34           and the string "...\n(### more bytes not shown)" appended.
35
36       --method string
37           Use the given method for the request instead of the default "GET".
38
39       --parse-head
40           By default lwp-dump will not try to initialize headers by looking
41           at the head section of HTML documents.  This option enables this.
42           This corresponds to "parse_head" in LWP::UserAgent.
43
44       --request
45           Also dump the request sent.
46

SEE ALSO

48       lwp-request, LWP, "dump" in HTTP::Message
49
50
51
52perl v5.38.0                      2023-07-25                       LWP-DUMP(1)
Impressum