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 indentified 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 str
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 str
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

SEE ALSO

45       lwp-request, LWP, "dump" in HTTP::Message
46
47
48
49perl v5.12.4                      2009-06-15                       LWP-DUMP(1)
Impressum