Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^11: javascript login

by robertw (Sexton)
on Aug 18, 2012 at 23:35 UTC ( #988262=note: print w/ replies, xml ) Need Help??

in reply to Re^10: javascript login
in thread javascript login gives an error because when i

$mech->dump_forms( [" +rl=%2fklanten%2fdefault.aspx"] ); Not a GLOB reference # print {$fh} $form->dump, "\n"; gives an error sub dump_forms { my $self = shift; my $fh = shift || \*STDOUT; for my $form ( $self->forms ) { print {$fh} $form->dump, "\n"; } return; }
 $mech->dump_forms( [""] );

Comment on Re^11: javascript login
Select or Download Code
Replies are listed 'Best First'.
Re^12: javascript login
by robertw (Sexton) on Aug 19, 2012 at 00:13 UTC

    I solved the problem, I switched perl, system perl (mac) is outdated, i need to upgrade that one, now it gives me the response WWW::Mechanize=HASH(0x100970d08)->dump_forms( HTTP::Response=HASH(0x100b5b118) );

    What do I have to fill in in form number right now?
        Isn't this the correct way to use it , with the $fh being the string of the site I want the form of ?
        print " $mech->dump_forms( [$fh] );"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988262]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-11-29 09:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls