/usr/local/bin
NameSizeModeActions
config_data71380555editdlrm
crc3210430555editdlrm
crontab33207360755editdlrm
drush61386460755editdlrm
drush.phar61386460755editdlrm
ea-php7258154000755editdlrm
ea-php7356472880755editdlrm
ea-php7463832960755editdlrm
ea-php8079860800755editdlrm
ea-php8180989520755editdlrm
ea_convert_php_ini408110755editdlrm
ea_current_to_profile115190755editdlrm
ea_install_profile72740755editdlrm
ea_sync_user_phpini_settings68880755editdlrm
htmltree11730555editdlrm
instmodsh41940555editdlrm
ipcount37240555editdlrm
iptab9820555editdlrm
json_pp38280555editdlrm
json_xs70130555editdlrm
lsphp9370755editdlrm
lwp-download86350555editdlrm
lwp-dump27970555editdlrm
lwp-mirror24780555editdlrm
lwp-request150590555editdlrm
mech-dump46230555editdlrm
passwd37686640755editdlrm
pear9350755editdlrm
php9330755editdlrm
php-config63840755editdlrm
prove134570555editdlrm
ptar34560555editdlrm
ptardiff25350555editdlrm
ptargrep42990555editdlrm
shasum92870555editdlrm
tpage89230555editdlrm
ttree392340555editdlrm
wp69284610755editdlrm
wp-cli.phar69284610755editdlrm
zipdetails483660555editdlrm
Edit: /usr/local/bin/lwp-dump (2797B)
#!/usr/bin/perl -w eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell use strict; use LWP::UserAgent (); use Getopt::Long qw(GetOptions); use Encode; use Encode::Locale; my $VERSION = "6.15"; 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] Recognized options are: --agent --keep-client-headers --max-length --method --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/$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 [ I ] I =head1 DESCRIPTION The B 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 Override the user agent string passed to the server. =item B<--keep-client-headers> LWP internally generate various C headers that are stripped by B in order to show the headers exactly as the server provided them. This option will suppress this. =item B<--max-length> I 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 Use the given method for the request instead of the default "GET". =item B<--parse-head> By default B will not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds to L. =item B<--request> Also dump the request sent. =back =head1 SEE ALSO L, L, L