-1

ASPページへのログインに問題があります。

これが私のコードです:

#!/usr/bin/perl -w
use strict;
use warnings;
use WWW::Mechanize;
use LWP::Debug qw(+);
my $mech = WWW::Mechanize->new;
$mech->agent('User-Agent=Mozilla/4.0');
$mech->get( 'http://site.net/index.asp' );
$mech->submit_form(
    form_name => 'form',
    fields      => {
        xpto    => '123'
    }
);
my $app_content = $mech->content();
print "$app_content\n";

そして、それは私が端末から得たものです:

    <html>
    <head>
        <title>Anti Bot</title>
    </head>
    <body>
        <h1 style="color:red;">Bots are not allowed here</h1>
    </body>
</html>
4

1 に答える 1