.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "MECH-DUMP 1p" .TH MECH-DUMP 1p 2024-02-04 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME mech\-dump \- Dumps information about a web page .SH VERSION .IX Header "VERSION" version 2.18 .SH SYNOPSIS .IX Header "SYNOPSIS" mech-dump [options] [file|url] .PP Options: .PP .Vb 5 \& \-\-headers Dump HTTP response headers \& \-\-forms Dump table of forms (default action) \& \-\-links Dump table of links \& \-\-images Dump table of images \& \-\-all Dump all four of the above, in that order \& \& \-\-text Dumps the textual part of the web page \& \& \-\-user=user Set the username \& \-\-password=pass Set the password \& \-\-cookie\-file=filename Set the filename to use for persistent cookies \& \& \-\-agent=agent Specify the UserAgent to pass \& \-\-agent\-alias=alias \& Specify the alias for the UserAgent to pass. \& Pick one of: \& * Windows IE 6 \& * Windows Mozilla \& * Mac Safari \& * Mac Mozilla \& * Linux Mozilla \& * Linux Konqueror \& \& \-\-absolute Show URLs as absolute, even if relative in the page \& \-\-help Show this message .Ve .PP The order of the options specified is relevant. Repeated options get repeated dumps. .PP \&\f(CW\*(C`mech\-dump\*(C'\fR will only work on HTML documents when used on remote URLs, but will assume any local file you pass it is HTML. If it is not, there won't be any usable results. .PP Proxy settings are specified through the environment (e.g. \f(CW\*(C`http_proxy=http://proxy.my.place/\*(C'\fR). See LWP::UserAgent for details. .SH "SEE ALSO" .IX Header "SEE ALSO" WWW::Mechanize .SH AUTHOR .IX Header "AUTHOR" Andy Lester .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2004 by Andy Lester. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.