Dear list members,
I would like to log in to a web site from Perl and return the URL and
content which the server returns after the login.
With the code below I have been successful in filling simple forms on
some websites. However I have not been able to log in to
http://www.finanztreff.de
You can use 'xxx' as username and password. In this case it should
return a proper error page.
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = new LWP::UserAgent;
my $req = POST
'http://www.finanztreff.de/ftr/steuer/user_steuer.htm',
[
CODE => '14',
BUTTON => 'Login',
LOGIN => 'xxx',
PW => 'xxx'
];
print $ua->request($req)->as_string;
Do you have any idea what I am doing wrong?
Obviously this website is using JavaScript, but yet is it possible to
log in using Perl or not?
Thank you so much for any reply!!!
Regards,
Dirk