Leser: 1
3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
use HTTP::Request::Common;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $response = $ua->request(POST "ul29.rapidshare.com", [uri => "/files/7437031/1.txt.html", dl.start => "Free"]);
if ($response->is_success) {
print $response->content;
}
else {
die $response->status_line;
}
1
2
3
<form action="ul29.rapidshare.com" method="post">
<input type="hidden" name="uri" value="/files/7437031/1.txt.html">
<input type="submit" name="dl.start" value="Free">
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $response = $ua->post("http://ul29.rapidshare.com", [uri => "/files/7437031/1.txt.html", "dl.start" => "Free"]);
if ($response->is_success) {
print $response->content;
}
else {
die $response->status_line;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use LWP::UserAgent;
use HTML::Form;
my $ua = LWP::UserAgent->new;
my $resp = $ua->get("http://ul29.rapidshare.com");
if( $resp->is_success ) {
my $f = HTML::Form->new( $resp->decoded_content( raise_error => 1 ), $resp->base );
$resp = $ua->request( $f->click );
if ($resp->is_success) {
print $resp->content;
}
else {
die $resp->status_line;
}
}
3 Einträge, 1 Seite |