D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
perl-HTTP-Tiny
/
eg
/
Filename :
mirror.pl
back
Copy
#!/usr/bin/perl use strict; use warnings; use HTTP::Tiny; my $url = shift(@ARGV) || 'http://example.com'; my $file = shift(@ARGV) || 'example.output'; my $response = HTTP::Tiny->new->mirror($url, $file); print "$response->{status} $response->{reason}\n"; while (my ($k, $v) = each %{$response->{headers}}) { for (ref $v eq 'ARRAY' ? @$v : $v) { print "$k: $_\n"; } }
Name
Size
Last Modified
Owner
Permissions
Actions
get.pl
0.386
KB
July 30 2018 7:36:01
root
0644
mirror.pl
0.383
KB
July 30 2018 7:36:01
root
0644
post.pl
0.555
KB
July 30 2018 7:36:01
root
0644
2017 © D7net | D704T team