Admin
dashboard
file manager
command
php exec
/
/
usr
/
share
/
doc
/
perl-HTTP-Tiny
/
eg
path:
go
upload
mkdir
name
type
size
perms
modified
actions
[parent directory]
get.pl
file
395 B
0644
2023-07-11 12:53:02
edit
delete
rename
mirror.pl
file
392 B
0644
2023-07-11 12:53:02
edit
delete
rename
post.pl
file
568 B
0644
2023-07-11 12:53:02
edit
delete
rename
editing: post.pl
#!/usr/bin/perl use strict; use warnings; use HTTP::Tiny; use URI::Escape qw/uri_escape_utf8/; my $url = 'http://search.cpan.org/search'; my %form_data = ( query => 'DAGOLDEN', mode => 'author', ); my @params; while( my @pair = each %form_data ) { push @params, join("=", map { uri_escape_utf8($_) } @pair); } my $response = HTTP::Tiny->new->request('POST', $url, { content => join("&", @params), headers => { 'content-type' => 'application/x-www-form-urlencoded' } }); print "$response->{status} $response->{reason}\n"; print $response->{content};
save
cancel