in reply to Re: Login into a website with cookies/session id
in thread Login into a website with cookies/session id
This is a two page form, how do I then submit the information on the next page? Would I just put in the next form code (as seen below)?
#!/usr/bin/perl use warnings; uses strict; use CGI qw/:standard/; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->submit_form( form_number => 1, fields => { username => 'user' } ); #### # the previous form redirects us to a new page/form. This # should fill out that form the, right? #### $mech->submit_form( form_number => 1, fields => { password => '12345' } ); #### # at this time, cookies should be saved allowing me to use # Mechanize to pull back ANY $url I want on Neopets.com. ####
|
|---|