gw1500se has asked for the wisdom of the Perl Monks concerning the following question:
This is a followup question to node ID 629420.
I have switched my method to use 'Mech' but now have a more basic problem. Since Mech does not support javascript I do not get the whole page or the form for submitting the login. I don't need javascript but I do need the source for the javascript (one of them contains a unique hash for encrypting the password). Maybe I am using the wring thing but when I use $mech->content(format=>'text'); I get an abbretiate form with the error that javascript is not enabled.
How do I fool this thing into thinking I have javascript enabled? This was not a problem when i was using LWP and 'GET'.
I have switched my method to use 'Mech' but now have a more basic problem. Since Mech does not support javascript I do not get the whole page or the form for submitting the login. I don't need javascript but I do need the source for the javascript (one of them contains a unique hash for encrypting the password). Maybe I am using the wring thing but when I use $mech->content(format=>'text'); I get an abbretiate form with the error that javascript is not enabled.
How do I fool this thing into thinking I have javascript enabled? This was not a problem when i was using LWP and 'GET'.
Thanks.my $mech=WWW::Mechanize->new(); $mech->get($URL1); print $mech->content(format=>'text');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: WWW::Mechanize and fooling server for javascript
by cLive ;-) (Prior) on Jul 31, 2007 at 00:04 UTC | |
by spatterson (Pilgrim) on Jul 31, 2007 at 09:32 UTC | |
Re: WWW::Mechanize and fooling server for javascript
by Cody Pendant (Prior) on Jul 31, 2007 at 01:21 UTC | |
by gw1500se (Beadle) on Jul 31, 2007 at 12:04 UTC | |
by marto (Cardinal) on Jul 31, 2007 at 12:32 UTC | |
by gw1500se (Beadle) on Jul 31, 2007 at 18:23 UTC | |
by Corion (Patriarch) on Jul 31, 2007 at 18:29 UTC | |
|
Back to
Seekers of Perl Wisdom