use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->get("https://www.amazon.com/gp/css/homepage.html/");
$mech->submit_form(
form_name => 'yaSignIn',
fields => { 'email' => $email,
'password' => $password,
},
);
print $mech->content();
####
POST https://www.amazon.com/gp/flex/sign-in/select.html [yaSignIn]
useRedirectOnSuccess=1 (hidden readonly)
path=/gp/css/homepage.html (hidden readonly)
action=sign-in (hidden readonly)
protocol=https (hidden readonly)
email= (text)
password= (password)
=Sign In (submit)
####