{
    "content": [
        {
            "type": "text",
            "text": "# lwp-dump(1p) (man)\n\n**Summary:** lwp-dump - See what headers and content is returned for a URL\n\n**Synopsis:** lwp-dump [ options ] URL\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --keep-client-headers | — | LWP internally generate various \"Client-*\" headers that are stripped by lwp-dump in order to show the headers exactly as |\n| — | --parse-head | — | By default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option ena |\n| — | --request | — | Also dump the request sent. |\n\n## See Also\n\n- LWP-DUMP(1p)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (11 lines) — 3 subsections\n  - --keep-client-headers (12 lines)\n  - --parse-head (4 lines)\n  - --request (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nlwp-dump - See what headers and content is returned for a URL\n\n### SYNOPSIS\n\nlwp-dump [ options ] URL\n\n### DESCRIPTION\n\nThe lwp-dump program will get the resource identified by the URL and then dump the response\nobject to STDOUT.  This will display the headers returned and the initial part of the\ncontent, escaped so that it's safe to display even binary content.  The escapes syntax used\nis the same as for Perl's double quoted strings.  If there is no content the string \"(no\ncontent)\" is shown in its place.\n\nThe following options are recognized:\n\n--agent string\nOverride the user agent string passed to the server.\n\n#### --keep-client-headers\n\nLWP internally generate various \"Client-*\" headers that are stripped by lwp-dump in order\nto show the headers exactly as the server provided them.  This option will suppress this.\n\n--max-length n\nHow much of the content to show.  The default is 512.  Set this to 0 for unlimited.\n\nIf the content is longer then the string is chopped at the limit and the string\n\"...\\n(### more bytes not shown)\" appended.\n\n--method string\nUse the given method for the request instead of the default \"GET\".\n\n#### --parse-head\n\nBy default lwp-dump will not try to initialize headers by looking at the head section of\nHTML documents.  This option enables this.  This corresponds to \"parsehead\" in\nLWP::UserAgent.\n\n#### --request\n\nAlso dump the request sent.\n\n### SEE ALSO\n\nlwp-request, LWP, \"dump\" in HTTP::Message\n\n\n\nperl v5.32.1                                 2022-01-28                                 LWP-DUMP(1p)\n\n"
        }
    ],
    "structuredContent": {
        "command": "lwp-dump",
        "section": "1p",
        "mode": "man",
        "summary": "lwp-dump - See what headers and content is returned for a URL",
        "synopsis": "lwp-dump [ options ] URL",
        "flags": [
            {
                "flag": "",
                "long": "--keep-client-headers",
                "arg": null,
                "description": "LWP internally generate 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. --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 then the string is chopped at the limit and the string \"...\\n(### more bytes not shown)\" appended. --method string Use the given method for the request instead of the default \"GET\"."
            },
            {
                "flag": "",
                "long": "--parse-head",
                "arg": null,
                "description": "By default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds to \"parsehead\" in LWP::UserAgent."
            },
            {
                "flag": "",
                "long": "--request",
                "arg": null,
                "description": "Also dump the request sent."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "LWP-DUMP",
                "section": "1p",
                "url": "https://www.chedong.com/phpMan.php/man/LWP-DUMP/1p/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": [
                    {
                        "name": "--keep-client-headers",
                        "lines": 12,
                        "long": "--keep-client-headers"
                    },
                    {
                        "name": "--parse-head",
                        "lines": 4,
                        "long": "--parse-head"
                    },
                    {
                        "name": "--request",
                        "lines": 2,
                        "long": "--request"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}